mbox series

[v1,0/2] usb: f_fs: safe operation in ffs_epfile_io()

Message ID 1653989775-14267-1-git-send-email-quic_linyyuan@quicinc.com
Headers show
Series usb: f_fs: safe operation in ffs_epfile_io() | expand

Message

Linyu Yuan May 31, 2022, 9:36 a.m. UTC
Fix two possible issue in ffs_epfile_io() when operation at blocking mode.

(note: Two changes queue internally for a long time, when I saw Michael Wu
send a patch[1], I also share to him, there is some discussion
but still not get his ACK. now also saw John Keeping comment
the change, this change is doing a little difference, hope it not break
the rules.)

[1]
https://lore.kernel.org/linux-usb/YpUJkxWBNuZiW7Xk@donbot/T/#m52a26046ed0e3ca4e7b4181c7c808f9e6d1f3ba5

Linyu Yuan (2):
  usb: gadget: ffs: change ep->status safe in ffs_epfile_io()
  usb: gadget: ffs: change ep->ep safe in ffs_epfile_io()

 drivers/usb/gadget/function/f_fs.c | 38 +++++++++++++++++++++++---------------
 1 file changed, 23 insertions(+), 15 deletions(-)