Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: fa6fdb3 ("driver core: bus_type: add dev_groups") Signed-off-by: Junjie Mao <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information