usb: gadget: f_fs: edit epfile->ep under lock
authorMichal Nazarewicz <mina86@mina86.com>
Tue, 4 Oct 2016 00:07:33 +0000 (02:07 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 17 Oct 2016 09:34:08 +0000 (12:34 +0300)
commit454915dde06a51133750c6745f0ba57361ba209d
tree51ef3f134d46a427d088b9c3d2a89c39944cff17
parenta07ce8d34eb3d9c6cec3aa25f7713e6aafad2260
usb: gadget: f_fs: edit epfile->ep under lock

epfile->ep is protected by ffs->eps_lock (not epfile->mutex) so clear it
while holding the spin lock.

Tested-by: John Stultz <john.stultz@linaro.org>
Tested-by: Chen Yu <chenyu56@huawei.com>
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_fs.c