diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2010-04-07 16:23:41 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-04-09 17:09:50 (GMT) |
commit | d3e06e2b15590b70ea73733fc4612e4741ff46e0 (patch) | |
tree | 021d71809197d8a195708ec9b3b114a0aa6eaa9c /net/can | |
parent | fc1c183353a113c71675fecd0485e5aa0fe68d72 (diff) | |
download | linux-d3e06e2b15590b70ea73733fc4612e4741ff46e0.tar.xz |
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 <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Nick Piggin <npiggin@suse.de>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Christoph Lameter <cl@linux-foundation.org>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions