From: Christoph Lameter Date: Tue, 16 Oct 2007 08:24:46 +0000 (-0700) Subject: Slab allocators: fail if ksize is called with a NULL parameter X-Git-Tag: v2.6.24-rc1~1218 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef8b4520bd9f8294ffce9abd6158085bde5dc902;p=pandora-kernel.git Slab allocators: fail if ksize is called with a NULL parameter A NULL pointer means that the object was not allocated. One cannot determine the size of an object that has not been allocated. Currently we return 0 but we really should BUG() on attempts to determine the size of something nonexistent. krealloc() interprets NULL to mean a zero sized object. Handle that separately in krealloc(). Signed-off-by: Christoph Lameter Acked-by: Pekka Enberg Cc: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed