]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: mv_u3d_core: fix violation of locking discipline in mv_u3d_ep_disable()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Tue, 23 Jul 2013 20:20:17 +0000 (00:20 +0400)
committerFelipe Balbi <balbi@ti.com>
Tue, 17 Sep 2013 15:38:48 +0000 (10:38 -0500)
commit3be7052122b5d0fda01983c3f33477bfca41c2e5
tree7af474c2118894f586b67aebd494fa3d216e844f
parent5667ee2a76214eb1f98d5ba5c60e1a9aa3440b67
usb: gadget: mv_u3d_core: fix violation of locking discipline in mv_u3d_ep_disable()

mv_u3d_nuke() expects to be calles with ep->u3d->lock held,
because mv_u3d_done() does. But mv_u3d_ep_disable() calls it
without lock that can lead to unpleasant consequences.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/mv_u3d_core.c