git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb2b407
)
driver core: bus: Goto appropriate labels on failure in bus_add_device
author
Junjie Mao
<junjie_mao@yeah.net>
Wed, 28 Jan 2015 02:02:44 +0000
(10:02 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 25 Mar 2015 12:40:31 +0000
(13:40 +0100)
It is not necessary to call device_remove_groups() when device_add_groups()
fails.
The group added by device_add_groups() should be removed if sysfs_create_link()
fails.
Fixes:
fa6fdb33b486
("driver core: bus_type: add dev_groups")
Signed-off-by: Junjie Mao <junjie_mao@yeah.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/bus.c
patch
|
blob
|
history
diff --cc
drivers/base/bus.c
Simple merge