Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb When we fail to allocate a usb xfer, abort TX l...
details: https://anonhg.NetBSD.org/src/rev/b1b6a62bd22a
branches: trunk
changeset: 344829:b1b6a62bd22a
user: martin <martin%NetBSD.org@localhost>
date: Sat Apr 23 12:26:29 2016 +0000
description:
When we fail to allocate a usb xfer, abort TX list initialization.
diffstat:
sys/dev/usb/if_smsc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 5373c8dcede2 -r b1b6a62bd22a sys/dev/usb/if_smsc.c
--- a/sys/dev/usb/if_smsc.c Sat Apr 23 12:15:38 2016 +0000
+++ b/sys/dev/usb/if_smsc.c Sat Apr 23 12:26:29 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_smsc.c,v 1.27 2016/04/23 10:15:31 skrll Exp $ */
+/* $NetBSD: if_smsc.c,v 1.28 2016/04/23 12:26:29 martin Exp $ */
/* $OpenBSD: if_smsc.c,v 1.4 2012/09/27 12:38:11 jsg Exp $ */
/* $FreeBSD: src/sys/dev/usb/net/if_smsc.c,v 1.1 2012/08/15 04:03:55 gonzo Exp $ */
@@ -1492,7 +1492,7 @@
sc->sc_bufsz, USBD_FORCE_SHORT_XFER, 0,
&c->sc_xfer);
if (error)
- ;
+ return EIO;
c->sc_buf = usbd_get_buffer(c->sc_xfer);
}
}
Home |
Main Index |
Thread Index |
Old Index