Commit 27d1890c authored by Mike Lockwood's avatar Mike Lockwood Committed by Colin Cross
Browse files

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: default avatarMike Lockwood <lockwood@android.com>
parent 0130a0e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment