usb: gadget: f_fs: stop sleeping in ffs_func_eps_disable
authorMichal Nazarewicz <mina86@mina86.com>
Tue, 4 Oct 2016 00:07:34 +0000 (02:07 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 17 Oct 2016 09:34:25 +0000 (12:34 +0300)
commita9e6f83c2df199187a5248f824f31b6787ae23ae
tree62a8d04048150a2509e158f272f69f6ce248c293
parent454915dde06a51133750c6745f0ba57361ba209d
usb: gadget: f_fs: stop sleeping in ffs_func_eps_disable

ffs_func_eps_disable is called from atomic context so it cannot sleep
thus cannot grab a mutex.  Change the handling of epfile->read_buffer
to use non-sleeping synchronisation method.

Reported-by: Chen Yu <chenyu56@huawei.com>
Signed-off-by: Michał Nazarewicz <mina86@mina86.com>
Fixes: 9353afbbfa7b ("buffer data from ‘oversized’ OUT requests")
Tested-by: John Stultz <john.stultz@linaro.org>
Tested-by: Chen Yu <chenyu56@huawei.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_fs.c