commit | 9550b105b8646f916862aee3ab7b25020ca14159 | [log] [tgz] |
---|---|---|
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | Thu Jul 19 13:21:34 2007 -0700 |
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | Thu Jul 19 13:21:34 2007 -0700 |
tree | d5e57db2bfd773611e2b77b4bbe6d89ba8449b45 | |
parent | a5c96d8a1c67f31ef48935a78da2d2076513842b [diff] |
slub: fix ksize() for zero-sized pointers The slab and slob allocators already did this right, but slub would call "get_object_page()" on the magic ZERO_SIZE_PTR, with all kinds of nasty end results. Noted by Ingo Molnar. Cc: Ingo Molnar <mingo@elte.hu> Cc: Christoph Lameter <clameter@sgi.com> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>