mod_sysfs_setup() doesn't return errno when kobject_add_dir() failure occurs
authorAkinobu Mita <akinobu.mita@gmail.com>
Thu, 26 Apr 2007 07:12:09 +0000 (00:12 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 17:57:34 +0000 (10:57 -0700)
commit240936e18b75937e7866934df723c2db0011d24f
tree0110cc4eecf98a3dec75e6a9d824907086591fe4
parenta53c46dc8253cc613ad66a2ca7aad6de8b7e61b9
mod_sysfs_setup() doesn't return errno when kobject_add_dir() failure occurs

mod_sysfs_setup() doesn't return an errno when kobject_add_dir() for module
"holders" directory fails.  So caller of mod_sysfs_setup() will keep going
and get oops.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/module.c