summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2006-10-10 11:55:47 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-10-17 14:46:32 -0700
commitc40fd5ea565587c05b0e2c49c02cad2c35fd85c6 (patch)
tree2ecf07bfaaf60ca6cadccd967f4750fe5f2d2f01 /drivers/usb
parentb62df4516981745d4b5de01ceec1d65a9174a524 (diff)
downloadblackbird-op-linux-c40fd5ea565587c05b0e2c49c02cad2c35fd85c6.tar.gz
blackbird-op-linux-c40fd5ea565587c05b0e2c49c02cad2c35fd85c6.zip
usbcore: fix refcount bug in endpoint removal
This patch (as799) fixes a nasty refcount error in the USB endpoint class. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/endpoint.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/core/endpoint.c b/drivers/usb/core/endpoint.c
index 3ebb90149e93..40ba76a17571 100644
--- a/drivers/usb/core/endpoint.c
+++ b/drivers/usb/core/endpoint.c
@@ -282,8 +282,6 @@ void usb_remove_ep_files(struct usb_host_endpoint *endpoint)
sysfs_remove_group(&endpoint->ep_dev->dev.kobj, &ep_dev_attr_grp);
device_unregister(&endpoint->ep_dev->dev);
endpoint->ep_dev = NULL;
+ destroy_endpoint_class();
}
- destroy_endpoint_class();
}
-
-
OpenPOWER on IntegriCloud