summaryrefslogtreecommitdiffstats
path: root/drivers/usb/atm
diff options
context:
space:
mode:
authorStanislaw Gruszka <stf_xl@wp.pl>2007-08-20 23:20:49 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2007-08-22 23:28:00 +0200
commit4c132e77242c130aea81c8fc64d59f573a26bf8d (patch)
treed5c03cf45d0252812a22d577243dc1a21e027ee0 /drivers/usb/atm
parentUSB: fsl_usb2_udc: fix bug in processing setup requests (diff)
downloadlinux-4c132e77242c130aea81c8fc64d59f573a26bf8d.tar.xz
linux-4c132e77242c130aea81c8fc64d59f573a26bf8d.zip
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>
Diffstat (limited to 'drivers/usb/atm')
-rw-r--r--drivers/usb/atm/ueagle-atm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c
index a1a1c9d467e0..29807d048b04 100644
--- a/drivers/usb/atm/ueagle-atm.c
+++ b/drivers/usb/atm/ueagle-atm.c
@@ -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;