mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 21:40:53 +07:00
UEAGLE: Remove sysfs files on error case
Bugfix, remove sysfs files when modem fails to boot. Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
39d1f8c9fc
commit
4c132e7724
@ -1721,9 +1721,12 @@ static int uea_bind(struct usbatm_data *usbatm, struct usb_interface *intf,
|
||||
|
||||
ret = uea_boot(sc);
|
||||
if (ret < 0)
|
||||
goto error;
|
||||
goto error_rm_grp;
|
||||
|
||||
return 0;
|
||||
|
||||
error_rm_grp:
|
||||
sysfs_remove_group(&intf->dev.kobj, &attr_grp);
|
||||
error:
|
||||
kfree(sc);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user