Skip to content

Commit

Permalink
UEAGLE: Remove sysfs files on error case
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stanislaw Gruszka authored and Greg Kroah-Hartman committed Aug 22, 2007
1 parent 39d1f8c commit 4c132e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/usb/atm/ueagle-atm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4c132e7

Please sign in to comment.