Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c132e77 authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by Greg Kroah-Hartman
Browse files

UEAGLE: Remove sysfs files on error case



Bugfix, remove sysfs files when modem fails to boot.

Signed-off-by: default avatarStanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 39d1f8c9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;