diff options
| author | Junjie Mao <junjie_mao@yeah.net> | 2015-01-28 10:02:44 +0800 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2015-05-06 11:33:02 +0100 |
| commit | 2759fc53001a992ed632d4222d6650f5171a3623 (patch) | |
| tree | e1c964c3abf1631a2a08cd0159ac7cd15093476a /include/linux | |
| parent | 85e68cfc159ed91bf1292e2d180fbdf1722a8d3f (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>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
