Commit e0de0a50 authored by Benoit Goby's avatar Benoit Goby
Browse files

usb: gadget: android: Cancel pending ctrlrequest before disabling



Make sure there is no pending ctrlrequest before removing the config.
Otherwise the ctrlrequest complete callback could access structures
after they have been freed. Unbind cancels pending transfers but not
ep0 requests.

Bug: 5513065 5440193

Change-Id: I063c22bf5d104a3d2df71cf622409459fac5f27a
Signed-off-by: default avatarBenoit Goby <benoit@android.com>
parent b86fd0b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment