aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorPekka Enberg <[email protected]>2010-04-07 19:23:41 +0300
committerLinus Torvalds <[email protected]>2010-04-09 10:09:50 -0700
commitd3e06e2b15590b70ea73733fc4612e4741ff46e0 (patch)
tree021d71809197d8a195708ec9b3b114a0aa6eaa9c /net/lapb/lapb_in.c
parentfc1c183353a113c71675fecd0485e5aa0fe68d72 (diff)
slub: Fix kmem_ptr_validate() for non-kernel pointers
As suggested by Linus, fix up kmem_ptr_validate() to handle non-kernel pointers more graciously. The patch changes kmem_ptr_validate() to use the newly introduced kern_ptr_validate() helper to check that a pointer is a valid kernel pointer before we attempt to convert it into a 'struct page'. Cc: Andrew Morton <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Matt Mackall <[email protected]> Cc: Nick Piggin <[email protected]> Signed-off-by: Pekka Enberg <[email protected]> Acked-by: Christoph Lameter <[email protected]> Acked-by: David Rientjes <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions