summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2016-02-27 01:33:14 +0300
committerFelipe Balbi <balbi@kernel.org>2016-03-04 15:14:47 +0200
commitcff5638ef7852196879f9687e70d49ea291bbb33 (patch)
treec5f7866cbd378848b28157ff007e37972f89db7f /drivers/usb/phy
parentead22caf8507c0533aab6b89e26776414b477b6f (diff)
downloadop-kernel-dev-cff5638ef7852196879f9687e70d49ea291bbb33.zip
op-kernel-dev-cff5638ef7852196879f9687e70d49ea291bbb33.tar.gz
usb: gadget: bdc_udc: fix race condition in bdc_udc_exit()
bdc_ep_disable() expects to be called with bdc->lock held. The assumption is met in all the cases except for call from bdc_udc_exit(), that is called from bdc_remove(). As a result a race can happen or unheld bdc->lock can be unlocked in bdc_req_complete(). The patch proposes to acquire-release bdc->lock around bdc_ep_disable() in bdc_udc_exit(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/usb/phy')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud