Skip to content
Commit 595ec197 authored by Thibaut Sautereau's avatar Thibaut Sautereau Committed by Linus Torvalds
Browse files

mm/page_alloc: fix __alloc_size attribute for alloc_pages_exact_nid

The second parameter of alloc_pages_exact_nid is the one indicating the
size of memory pointed by the returned pointer.

Link: https://lkml.kernel.org/r/YbjEgwhn4bGblp//@coeus


Fixes: abd58f38 ("mm/page_alloc: add __alloc_size attributes for better bounds checking")
Signed-off-by: default avatarThibaut Sautereau <thibaut.sautereau@ssi.gouv.fr>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Cc: Daniel Micay <danielmicay@gmail.com>
Cc: Levente Polyak <levente@leventepolyak.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 94ab10dd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment