driver core: sysdev: do not send KOBJ_ADD uevent if kobject_init_and_add fails
authorXiaotian Feng <dfeng@redhat.com>
Fri, 24 Jul 2009 09:31:41 +0000 (17:31 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jul 2009 20:45:22 +0000 (13:45 -0700)
commit79f0313bfc67aa13abb931e8c12a1411f0161a68
tree51eebd9f4d5886139849ff42df24cec4169ea343
parent4df7b3e0370ab6161ea2f258f51dd7c43bef2bda
driver core: sysdev: do not send KOBJ_ADD uevent if kobject_init_and_add fails

If kobject_init_and_add fails, sysdev_register should not send KOBJ_ADD
uevent to userspace.

Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/sys.c