Loading drivers/usb/gadget/function/f_mtp.c +5 −0 Original line number Diff line number Diff line Loading @@ -944,6 +944,10 @@ static void receive_file_work(struct work_struct *data) mtp_log("- count(%lld) not multiple of mtu(%d)\n", count, dev->ep_out->maxpacket); mutex_lock(&dev->read_mutex); if (dev->state == STATE_OFFLINE) { r = -EIO; goto fail; } while (count > 0 || write_req) { if (count > 0) { /* queue a request */ Loading Loading @@ -1026,6 +1030,7 @@ static void receive_file_work(struct work_struct *data) read_req = NULL; } } fail: mutex_unlock(&dev->read_mutex); mtp_log("returning %d\n", r); /* write the result */ Loading Loading
drivers/usb/gadget/function/f_mtp.c +5 −0 Original line number Diff line number Diff line Loading @@ -944,6 +944,10 @@ static void receive_file_work(struct work_struct *data) mtp_log("- count(%lld) not multiple of mtu(%d)\n", count, dev->ep_out->maxpacket); mutex_lock(&dev->read_mutex); if (dev->state == STATE_OFFLINE) { r = -EIO; goto fail; } while (count > 0 || write_req) { if (count > 0) { /* queue a request */ Loading Loading @@ -1026,6 +1030,7 @@ static void receive_file_work(struct work_struct *data) read_req = NULL; } } fail: mutex_unlock(&dev->read_mutex); mtp_log("returning %d\n", r); /* write the result */ Loading