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 14:28:00 -0700
commit4c132e77242c130aea81c8fc64d59f573a26bf8d (patch)
treed5c03cf45d0252812a22d577243dc1a21e027ee0 /drivers/usb/atm
parent39d1f8c9fcb241c526efa5fff5869cad7beba98e (diff)
downloadop-kernel-dev-4c132e77242c130aea81c8fc64d59f573a26bf8d.zip
op-kernel-dev-4c132e77242c130aea81c8fc64d59f573a26bf8d.tar.gz
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 a1a1c9d..29807d0 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