Commit e7f45947 authored by David Manouchehri's avatar David Manouchehri Committed by Commit Bot

Add nullptr check.

Bug: 1136327
Change-Id: I8ced300d7de0e2465e54d5111f915af425c66c40
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2463708
Auto-Submit: David Manouchehri <david@davidmanouchehri.com>
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#816320}
parent 36c4ff04
......@@ -358,7 +358,7 @@ void UsbDeviceHandleUsbfs::BlockingTaskRunnerHelper::
FROM_HERE, base::BlockingType::MAY_BLOCK);
usbdevfs_urb* urb = nullptr;
int rc = HANDLE_EINTR(ioctl(fd_.get(), USBDEVFS_REAPURBNDELAY, &urb));
if (rc) {
if (rc || !urb) {
if (errno == EAGAIN)
break;
USB_PLOG(DEBUG) << "Failed to reap urbs";
......
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