commit | 33ad261aa62be02f0cedeb4d5735cc726de84a3f | [log] [tgz] |
---|---|---|
author | Gregory Herrero <gregory.herrero@intel.com> | Wed Apr 29 22:09:15 2015 +0200 |
committer | Felipe Balbi <balbi@ti.com> | Wed Apr 29 15:19:55 2015 -0500 |
tree | 813c94cc9394145e309c77882c5f5427894da83b | |
parent | a7714c1cb11dc3bb97a76d2bb0560415d155b1d5 [diff] |
usb: dwc2: host: spinlock urb_enqueue During urb_enqueue, if the urb can't be queued to the endpoint, the urb is freed without any spinlock protection. This leads to memory corruption when concurrent urb_dequeue try to free same urb->hcpriv. Thus, ensure the whole urb_enqueue in spinlocked. Acked-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Gregory Herrero <gregory.herrero@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>