summaryrefslogtreecommitdiffstats
path: root/drivers/usb
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 14:28:00 -0700
commit4c132e77242c130aea81c8fc64d59f573a26bf8d (patch)
treed5c03cf45d0252812a22d577243dc1a21e027ee0 /drivers/usb
parent39d1f8c9fcb241c526efa5fff5869cad7beba98e (diff)
downloadblackbird-op-linux-4c132e77242c130aea81c8fc64d59f573a26bf8d.tar.gz
blackbird-op-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')
-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;
OpenPOWER on IntegriCloud