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)
committerMike Lockwood <lockwood@android.com>
Thu, 13 Jan 2011 21:24:22 +0000 (16:24 -0500)
commitcd02d2ba933778f17cd9e7e792b9c4c76dcb0785
treed1d29ae6b5048031718dccf0f3fd829daca2ce25
parent9842a6487d40eff010754416670672a2b6403624
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