mtp: modify receive_file_work return error problem, when force disconnect usb

This commit is contained in:
hwg
2012-04-23 15:41:51 +08:00
parent ea0dc9fd99
commit 99eb1dfdef

View File

@@ -787,7 +787,8 @@ static void receive_file_work(struct work_struct *data)
if (read_req->actual < read_req->length) {
/* short packet is used to signal EOF for sizes > 4 gig */
DBG(cdev, "got short packet\n");
count = 0;
if (count == 0xFFFFFFFF)
count = 0;
}
write_req = read_req;