]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: f_hid: fix: Don't access hidg->req without spinlock held
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 31 Jan 2017 17:12:31 +0000 (18:12 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 22 Mar 2017 09:21:10 +0000 (11:21 +0200)
commit4f5db97dce9655f6cb80083641b21adab1fca1c7
treef374f081506004e4c0e1208b5f1f069b0d9006c0
parenta18eaed56d3b157a1cb84a44d067e6c96e627af1
usb: gadget: f_hid: fix: Don't access hidg->req without spinlock held

hidg->req should be accessed only with write_spinlock held as it is
set to NULL when we get disabled by host.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_hid.c