diff options
author | Junjie Mao <junjie_mao@yeah.net> | 2015-01-28 10:02:44 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-06 21:59:21 +0200 |
commit | cc87bcf04caf19d6a6b8c996f39226477d06c26f (patch) | |
tree | 521d6a19a3a0153b702473f7883198ee80a65532 /fs | |
parent | 3bd6baa72fa049ebe1f1d7e1c7ec819dad332d75 (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 'fs')
0 files changed, 0 insertions, 0 deletions