commit | 50fe49af85a941f6666a09c5bbf891d5044cb615 | [log] [tgz] |
---|---|---|
author | Mike Lockwood <lockwood@android.com> | Thu Jan 13 16:19:57 2011 -0500 |
committer | Colin Cross <ccross@android.com> | Tue Jun 14 09:09:49 2011 -0700 |
tree | 12a23536059996720085a68c3af8ba7601e1de68 | |
parent | fac435cf496230c2f24e1414fa27300136c2a838 [diff] |
USB: gadget: f_mtp: Make sure request is dequeued if transfer is canceled If the host cancels a file transfer while we have a read request pending, call usb_ep_dequeue to cancel the read. Also return -ECANCELED from mtp_ioctl if we are canceled in MTP_RECEIVE_FILE Signed-off-by: Mike Lockwood <lockwood@android.com>