Messages in this thread | | | From | "Du, Changbin" <> | Subject | RE: [PATCH] usb: f_fs: avoid race condition with ffs_epfile_io_complete | Date | Tue, 5 Jan 2016 06:22:02 +0000 |
| |
> > > > You are right, but the problem is the request->status is wrong. If the data > > send out but report caller as -EINTR, it will introduce duplicate-send > > issue. > > > > Why -EINTR, the kernel-doc said it should return -ECONNRESET for active > request, see include/linux/usb/gadget.h. > > -- > > Best Regards, > Peter Chen F_fs return -EINTER in its dequeuer case, not udc driver. What I want to say is driver should return the right status for each usb request.
| |