diff options
author | Junjie Mao <junjie_mao@yeah.net> | 2015-01-28 10:02:44 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-25 13:40:31 +0100 |
commit | 1c34203a1496d1849ba978021b878b3447d433c8 (patch) | |
tree | 5fa2a80eb88de97fe6f373e64077f11c197052ca /samples | |
parent | bb2b40754ff4b2fffd8015ac96c45269cb54ee79 (diff) | |
download | op-kernel-dev-1c34203a1496d1849ba978021b878b3447d433c8.zip op-kernel-dev-1c34203a1496d1849ba978021b878b3447d433c8.tar.gz |
driver core: bus: Goto appropriate labels on failure in bus_add_device
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 'samples')
0 files changed, 0 insertions, 0 deletions