projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b62df45
)
usbcore: fix refcount bug in endpoint removal
author
Alan Stern
<stern@rowland.harvard.edu>
Tue, 10 Oct 2006 15:55:47 +0000
(11:55 -0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 17 Oct 2006 21:46:32 +0000
(14:46 -0700)
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>
drivers/usb/core/endpoint.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/core/endpoint.c
b/drivers/usb/core/endpoint.c
index 3ebb90149e93ef7319ae529c22da546032172730..40ba76a175719dd95f7818ac939751af38838866 100644
(file)
--- 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();
}
-
-