diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2013-03-15 18:02:14 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-05 16:26:05 (GMT) |
commit | cf0dd5c0a89b0b5d15073fdbbefdaea627e38966 (patch) | |
tree | afeb18d7c166f96814cd0764e65ee5df40ccc5ce /arch | |
parent | 0a9f03287a9290fb61aa74604b4f8fd7fdd3b64e (diff) | |
download | linux-fsl-qoriq-cf0dd5c0a89b0b5d15073fdbbefdaea627e38966.tar.xz |
usb: gadget: udc-core: fix a regression during gadget driver unbinding
commit 511f3c5326eabe1ece35202a404c24c0aeacc246 upstream.
This patch (as1666) fixes a regression in the UDC core. The core
takes care of unbinding gadget drivers, and it does the unbinding
before telling the UDC driver to turn off the controller hardware.
When the call to the udc_stop callback is made, the gadget no longer
has a driver. The callback routine should not be invoked with a
pointer to the old driver; doing so can cause problems (such as
use-after-free accesses in net2280).
This patch should be applied, with appropriate context changes, to all
the stable kernels going back to 3.1.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions