Christoph Lameter ef8b4520bd 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 <clameter@sgi.com>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-16 09:42:53 -07:00
..
2007-07-19 10:04:41 -07:00
2007-10-16 09:42:53 -07:00
2007-07-17 10:22:59 -07:00
2007-10-16 09:42:52 -07:00
2007-10-14 12:41:51 -07:00
2007-02-15 09:57:03 -08:00
2007-07-19 10:04:45 -07:00
2007-05-21 09:18:19 -07:00
2007-07-31 15:39:36 -07:00
2005-04-16 15:20:36 -07:00
2007-05-07 12:12:54 -07:00
2007-10-16 09:42:53 -07:00
2007-10-16 09:42:52 -07:00
2007-10-16 09:42:52 -07:00
2007-07-29 17:09:29 -07:00