Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Issue 2584093002: Prevent timed-out USB transfers from being cancelled twice. (Closed)

Created:
4 years ago by Reilly Grant (use Gerrit)
Modified:
4 years ago
Reviewers:
juncai
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent timed-out USB transfers from being cancelled twice. If a transfer times out then when the connection is closed the transfer will be cancelled again. This violates the contract that transfer callbacks should only be called once and can thus cause issues with client code. BUG=675012 Committed: https://crrev.com/64539fbea7bd7bbac3933e9413b9502e77633104 Cr-Commit-Position: refs/heads/master@{#439912}

Patch Set 1 #

Patch Set 2 : Reset callbacks after they are run. #

Total comments: 2

Patch Set 3 : Move |urb| field back to the end of the Transfer struct. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -10 lines) Patch
M device/usb/usb_device_handle_usbfs.cc View 1 2 5 chunks +19 lines, -10 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
Reilly Grant (use Gerrit)
Reset callbacks after they are run.
4 years ago (2016-12-20 02:57:18 UTC) #3
Reilly Grant (use Gerrit)
Please take a look.
4 years ago (2016-12-20 02:57:54 UTC) #8
juncai
https://codereview.chromium.org/2584093002/diff/20001/device/usb/usb_device_handle_usbfs.cc File device/usb/usb_device_handle_usbfs.cc (right): https://codereview.chromium.org/2584093002/diff/20001/device/usb/usb_device_handle_usbfs.cc#newcode254 device/usb/usb_device_handle_usbfs.cc:254: TransferCallback callback; The comment for the above |urb| variable ...
4 years ago (2016-12-20 18:18:54 UTC) #11
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2584093002/diff/20001/device/usb/usb_device_handle_usbfs.cc File device/usb/usb_device_handle_usbfs.cc (right): https://codereview.chromium.org/2584093002/diff/20001/device/usb/usb_device_handle_usbfs.cc#newcode254 device/usb/usb_device_handle_usbfs.cc:254: TransferCallback callback; On 2016/12/20 18:18:54, juncai wrote: > The ...
4 years ago (2016-12-20 20:29:00 UTC) #13
juncai
LGTM.
4 years ago (2016-12-20 21:41:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2584093002/40001
4 years ago (2016-12-20 22:48:19 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-20 23:09:38 UTC) #21
commit-bot: I haz the power
4 years ago (2016-12-20 23:12:57 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/64539fbea7bd7bbac3933e9413b9502e77633104
Cr-Commit-Position: refs/heads/master@{#439912}

Powered by Google App Engine
This is Rietveld 408576698