mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-05-02 21:35:59 +00:00
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>
This commit is contained in:
parent
b62df45169
commit
c40fd5ea56
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
sysfs_remove_group(&endpoint->ep_dev->dev.kobj, &ep_dev_attr_grp);
|
||||||
device_unregister(&endpoint->ep_dev->dev);
|
device_unregister(&endpoint->ep_dev->dev);
|
||||||
endpoint->ep_dev = NULL;
|
endpoint->ep_dev = NULL;
|
||||||
|
destroy_endpoint_class();
|
||||||
}
|
}
|
||||||
destroy_endpoint_class();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue