]> git.baikalelectronics.ru Git - kernel.git/commit
slab: warn on zero-length allocations
authorChristoph Lameter <clameter@sgi.com>
Thu, 17 May 2007 05:10:53 +0000 (22:10 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 17 May 2007 12:23:03 +0000 (05:23 -0700)
commit1748450596dac7c0d71d8c0a8e62b0aa02acc430
tree7d726723f427a3add9a22ac4d34ca236b6f8376a
parent0a9de3e9fba9e4af795bb7fabedb3e4f9905ea76
slab: warn on zero-length allocations

slub warns on this, and we're working on making kmalloc(0) return NULL.
Let's make slab warn as well so our testers detect such callers more
rapidly.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slab.c