Module Name: src Committed By: martin Date: Sat Apr 23 12:26:29 UTC 2016
Modified Files: src/sys/dev/usb: if_smsc.c Log Message: When we fail to allocate a usb xfer, abort TX list initialization. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/sys/dev/usb/if_smsc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/if_smsc.c diff -u src/sys/dev/usb/if_smsc.c:1.27 src/sys/dev/usb/if_smsc.c:1.28 --- src/sys/dev/usb/if_smsc.c:1.27 Sat Apr 23 10:15:31 2016 +++ src/sys/dev/usb/if_smsc.c Sat Apr 23 12:26:29 2016 @@ -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 @@ smsc_tx_list_init(struct smsc_softc *sc) sc->sc_bufsz, USBD_FORCE_SHORT_XFER, 0, &c->sc_xfer); if (error) - ; + return EIO; c->sc_buf = usbd_get_buffer(c->sc_xfer); } }