ANDROID: usb: f_mtp: return error code if transfer error in receive_file_work function
authorJiebing Li <jiebing.li@intel.com>
Tue, 10 Mar 2015 03:27:10 +0000 (11:27 +0800)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 25 May 2017 11:07:25 +0000 (16:37 +0530)
commit8bb6e5139ebe6a37df26911a54ae7e5a27ad1615
tree18977eea44181a6c1b52e9d4089110c6be42e549
parent1184966b27b0c3bc8e92706797a81ee3e243df7e
ANDROID: usb: f_mtp: return error code if transfer error in receive_file_work function

receive_file_work() function should report error if it detect the urb
is not successfully transfered.

Patchset: mtp

Change-Id: I66898afe6b6ea2c33e6ea4c5ccf47d3a56d002dc
Signed-off-by: Du, Changbin <changbin.du@gmail.com>
Signed-off-by: Wang, Yu <yu.y.wang@intel.com>
Signed-off-by: Russ Weight <russell.h.weight@intel.com>
drivers/usb/gadget/function/f_mtp.c