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)
commit25cd9721c2b16ee0d775e36ec3af31f392003f80
treef374f081506004e4c0e1208b5f1f069b0d9006c0
parent1f459262b0e1649a1e5ad12fa4c66eb76c2220ce
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