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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

-- 
2.7.4




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux