Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Pay attention to the return value from cv_wait_s...
details: https://anonhg.NetBSD.org/src/rev/0639c3e2d1d0
branches: trunk
changeset: 784139:0639c3e2d1d0
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Jan 19 15:10:05 2013 +0000
description:
Pay attention to the return value from cv_wait_sig as well in
usbd_transfer. hi christos.
diffstat:
sys/dev/usb/usbdi.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r aa9675f0b3bb -r 0639c3e2d1d0 sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c Sat Jan 19 14:36:41 2013 +0000
+++ b/sys/dev/usb/usbdi.c Sat Jan 19 15:10:05 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdi.c,v 1.145 2013/01/19 14:36:41 skrll Exp $ */
+/* $NetBSD: usbdi.c,v 1.146 2013/01/19 15:10:05 skrll Exp $ */
/*
* Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.145 2013/01/19 14:36:41 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.146 2013/01/19 15:10:05 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -326,7 +326,7 @@
err = 0;
if ((flags & USBD_SYNCHRONOUS_SIG) != 0) {
if (pipe->device->bus->lock)
- cv_wait_sig(&xfer->cv, pipe->device->bus->lock);
+ err = cv_wait_sig(&xfer->cv, pipe->device->bus->lock);
else
err = tsleep(xfer, PZERO|PCATCH, "usbsyn", 0);
} else {
Home |
Main Index |
Thread Index |
Old Index