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/a03e5bfad07e
branches:  trunk
changeset: 814971:a03e5bfad07e
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 3226f99ec2e8 -r a03e5bfad07e 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