Hi All,
On 12/15/22 10:55 AM, Udipto Goswami wrote:
This series will prevent race between ep0_queue_wait &
functionfs_unbind. Currently, both routines are running
without any kind of serialization to make sure ep0req
doesn't get corrupted.
Changes in v4:
Split the implementation of v3 [1] into a series for better clarity.
Changes in v3:
Moved dequeue out of mutex to prevent deadlock.
Changes in v2:
Replaces spinlock with mutex & added dequeue operation in unbind.
[1]: https://patchwork.kernel.org/project/linux-usb/patch/20221125054119.25135-1-quic_ugoswami@xxxxxxxxxxx/
Udipto Goswami (2):
usb: gadget: f_fs: Prevent race during ffs_ep0_queue_wait
usb: gadget: f_fs: Ensure ep0req is dequeued before free_request
drivers/usb/gadget/function/f_fs.c | 7 +++++++
1 file changed, 7 insertions(+)
Please ignore this individual cover letter, sent out a v4 series with
and updated cover letter.
Apologies for the confusion.
Thanks,
-Udipto