driver core: don't trigger uevent after failure
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 17 Jul 2012 08:39:10 +0000 (10:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jul 2012 17:40:23 +0000 (10:40 -0700)
commita14af325641794d1ce8e676e9c4967342349195c
tree5f59e8d8b1d224651895e2fdad3172b15415bdd2
parentdb1b9037424b8219449a6754e9b7e97b0523c426
driver core: don't trigger uevent after failure

Do not send the uevent if driver_add_groups failed.

Reported-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/driver.c