Skip to content
Commit a9e6f83c authored by Michal Nazarewicz's avatar Michal Nazarewicz Committed by Felipe Balbi
Browse files

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: default avatarChen Yu <chenyu56@huawei.com>
Signed-off-by: default avatarMichał Nazarewicz <mina86@mina86.com>
Fixes: 9353afbb

 ("buffer data from ‘oversized’ OUT requests")
Tested-by: default avatarJohn Stultz <john.stultz@linaro.org>
Tested-by: default avatarChen Yu <chenyu56@huawei.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 454915dd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment