提交 4c132e77 编写于 作者: S Stanislaw Gruszka 提交者: Greg Kroah-Hartman

UEAGLE: Remove sysfs files on error case

Bugfix, remove sysfs files when modem fails to boot.
Signed-off-by: NStanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 39d1f8c9
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册