sysfs: avoid kmem_cache_free(NULL)
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 14 Jul 2007 02:03:35 +0000 (11:03 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 18 Jul 2007 22:49:49 +0000 (15:49 -0700)
kmem_cache_free() with NULL is not allowed. But it may happen
if out of memory error is triggered in sysfs_new_dirent().
This patch fixes that error handling.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found