DescriptionFix crash when closing a device from a USB transfer timeout
Code such as the USB device enumeration logic will close the device
immediately in response to a transfer error. This would cause
reentrancy into the CancelTransfer function, leading to a crash. This
patch updates UsbDeviceHandleUsbfs::Close and CancelTransfer to be
reentrancy safe and adds a test case that reproduces the crash without
this change applied.
BUG=714770
Review-Url: https://codereview.chromium.org/2843613002
Cr-Commit-Position: refs/heads/master@{#466815}
Committed: https://chromium.googlesource.com/chromium/src/+/7ac2374e5a71a1c49f8cf433726ce6f4afb81c4e
Patch Set 1 #
Total comments: 6
Patch Set 2 : Address mcasas@ nits #
Messages
Total messages: 15 (9 generated)
|