Commit 6c0735e3 authored by David Manouchehri's avatar David Manouchehri Committed by Commit Bot

Initialize urb to make MSan happy.

Bug: 1136327
Change-Id: Id47e06bfd088e5c72d5f41c091882e99768fb93d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2459447
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Auto-Submit: David Manouchehri <david@davidmanouchehri.com>
Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#815025}
parent 3abbe8f2
...@@ -356,7 +356,7 @@ void UsbDeviceHandleUsbfs::BlockingTaskRunnerHelper:: ...@@ -356,7 +356,7 @@ void UsbDeviceHandleUsbfs::BlockingTaskRunnerHelper::
for (size_t i = 0; i < MAX_URBS_PER_EVENT; ++i) { for (size_t i = 0; i < MAX_URBS_PER_EVENT; ++i) {
base::ScopedBlockingCall scoped_blocking_call( base::ScopedBlockingCall scoped_blocking_call(
FROM_HERE, base::BlockingType::MAY_BLOCK); FROM_HERE, base::BlockingType::MAY_BLOCK);
usbdevfs_urb* urb; usbdevfs_urb* urb = nullptr;
int rc = HANDLE_EINTR(ioctl(fd_.get(), USBDEVFS_REAPURBNDELAY, &urb)); int rc = HANDLE_EINTR(ioctl(fd_.get(), USBDEVFS_REAPURBNDELAY, &urb));
if (rc) { if (rc) {
if (errno == EAGAIN) if (errno == EAGAIN)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment