USB: gadget: f_mtp: Make sure request is dequeued if transfer is canceled
authorMike Lockwood <lockwood@android.com>
Thu, 13 Jan 2011 21:19:57 +0000 (16:19 -0500)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:06:43 +0000 (12:06 -0800)
commitc4b036aad27d073e408cbecc1a15fadd1fa1a4d8
treef4e524a616b3f46d78822206e88dafed5b5f051d
parent23410f7a573e01b8d0e32a42d6c0d0b346587f58
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>
drivers/usb/gadget/f_mtp.c