*new* check_kmalloc_to_bugon: don't call bug_on() for allocation failures
commita65b3daee0830ad5ae4e775e2582bae8fed57e57
authorDan Carpenter <error27@gmail.com>
Thu, 29 Jul 2010 23:24:34 +0000 (30 01:24 +0200)
committerDan Carpenter <error27@gmail.com>
Thu, 29 Jul 2010 23:24:34 +0000 (30 01:24 +0200)
tree6675cf0da8e8a2c55677483fe5d5e3ada86b96bc
parent7becb28d9f69212105680e80f5830cb0b0e14c9c
*new* check_kmalloc_to_bugon: don't call bug_on() for allocation failures

During the kernel initialization it's OK to do:
foo = kmalloc();
BUG_ON(!foo);
But sometimes it's just a lazy thing...  This check is turned on by default
so use --spammy to enable it.

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_kmalloc_to_bugon.c [new file with mode: 0644]
check_list.h