summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJunjie Mao <junjie_mao@yeah.net>2015-01-28 10:02:44 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-06 22:04:08 +0200
commit4c0a56b2ee7b3a3741339e943acd2692c146fcb1 (patch)
treecfe63d254e6390cdcda4f55a940d810a2a035533 /net
parent6361409a1274060993b246c688c24a7c863c7eeb (diff)
driver core: bus: Goto appropriate labels on failure in bus_add_device
commit 1c34203a1496d1849ba978021b878b3447d433c8 upstream. 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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions