commit | 090cbc41c937f03311d34b72ab435444ad752cb6 | [log] [tgz] |
---|---|---|
author | Mike Lockwood <lockwood@android.com> | Mon Feb 07 11:51:07 2011 -0500 |
committer | Colin Cross <ccross@android.com> | Tue Jun 14 09:09:52 2011 -0700 |
tree | 1e15580289d138bd95ac8bbce06290165f9b6b43 | |
parent | 8abaec8e7848c632fe6efd1bf661e66ea5c2dc79 [diff] |
USB: gadget: f_mtp: Fix problems transferring files from device to host Exit from send_file_work immediately when a cancel request is received. Only busy status if there is a cancel pending that has not been repoorted to userspace. This avoids a race condition that can occur when mtp_read resets the state to STATE_BUSY before we report status OK back to the host. Signed-off-by: Mike Lockwood <lockwood@android.com>