commit | 27d1890c42600e15ac71642b9cf863f9a0d068ba | [log] [tgz] |
---|---|---|
author | Mike Lockwood <lockwood@android.com> | Thu Apr 15 15:04:07 2010 -0400 |
committer | Colin Cross <ccross@android.com> | Tue Jun 14 09:09:07 2011 -0700 |
tree | 55d35b5fa6072359d53d9dcdb8006259464a98dd | |
parent | 0130a0e683e4266bda24c27c246dc1adaa6fad9a [diff] |
USB: gadget: f_mass_storage: Defer handling interface changes until it is safe. Pulling in some code from file_storage.c, we now handle interface changes in do_set_config(), which is now not called until any pending requests have been successfully completed or cancelled. This fixes a race condition that resulted in usb_ep_free_request() being called while the request is still busy. Signed-off-by: Mike Lockwood <lockwood@android.com>