slub: Check kasprintf results in kmem_cache_init()
authorChristoph Lameter <cl@linux-foundation.org>
Fri, 9 Jul 2010 19:07:12 +0000 (14:07 -0500)
committerPekka Enberg <penberg@cs.helsinki.fi>
Fri, 16 Jul 2010 08:13:07 +0000 (11:13 +0300)
commitd7278bd7d1aab5c6d35fd271eeb860548f0bd0bb
tree24f82cf0c312c69291b7f4ed4879a0a345558cac
parentf90ec390148fdbc0db38c477bc6dc94db721e7f1
slub: Check kasprintf results in kmem_cache_init()

Small allocations may fail during slab bringup which is fatal. Add a BUG_ON()
so that we fail immediately rather than failing later during sysfs
processing.

Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c