From: Akinobu Mita Date: Sat, 14 Jul 2007 02:03:35 +0000 (+0900) Subject: sysfs: avoid kmem_cache_free(NULL) X-Git-Tag: v2.6.23-rc1~480^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01da2425f327d7ac673e594bee5655523115970b;p=pandora-kernel.git sysfs: avoid kmem_cache_free(NULL) 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed