summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/isp1362-hcd.c
diff options
context:
space:
mode:
authorAlan Stern2010-11-16 16:57:37 +0100
committerGreg Kroah-Hartman2010-11-16 22:36:41 +0100
commit02e2c51ba3e80acde600721ea784c3ef84da5ea1 (patch)
tree3f6d3b45e7902084ea30debe4b5ebcf9d488a5e3 /drivers/usb/host/isp1362-hcd.c
parentUSB: gadget: AT91: fix typo in atmel_usba_udc driver (diff)
downloadkernel-qcow2-linux-02e2c51ba3e80acde600721ea784c3ef84da5ea1.tar.gz
kernel-qcow2-linux-02e2c51ba3e80acde600721ea784c3ef84da5ea1.tar.xz
kernel-qcow2-linux-02e2c51ba3e80acde600721ea784c3ef84da5ea1.zip
USB: EHCI: fix obscure race in ehci_endpoint_disable
This patch (as1435) fixes an obscure and unlikely race in ehci-hcd. When an async URB is unlinked, the corresponding QH is removed from the async list. If the QH's endpoint is then disabled while the URB is being given back, ehci_endpoint_disable() won't find the QH on the async list, causing it to believe that the QH has been lost. This will lead to a memory leak at best and quite possibly to an oops. The solution is to trust usbcore not to lose track of endpoints. If the QH isn't on the async list then it doesn't need to be taken off the list, but the driver should still wait for the QH to become IDLE before disabling it. In theory this fixes Bugzilla #20182. In fact the race is so rare that it's not possible to tell whether the bug is still present. However, adding delays and making other changes to force the race seems to show that the patch works. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Reported-by: Stefan Richter <stefanr@s5r6.in-berlin.de> CC: David Brownell <david-b@pacbell.net> CC: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/isp1362-hcd.c')
0 files changed, 0 insertions, 0 deletions