diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2005-07-07 20:16:45 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2005-07-07 20:16:45 +0000 |
commit | 51e82c1e24b906c8913902c4dfc00feb1a1f6af4 (patch) | |
tree | 89296c32de84f5bdd1bb828df4f738738a55f698 /sys/dev/usb | |
parent | cbba43fa52e640d8733f3eea9c7bcd2183058cda (diff) |
ueagle.c
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/ueagle.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/usb/ueagle.c b/sys/dev/usb/ueagle.c index 8c01f3e48aa..515af6fc5e6 100644 --- a/sys/dev/usb/ueagle.c +++ b/sys/dev/usb/ueagle.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ueagle.c,v 1.3 2005/05/13 20:20:21 damien Exp $ */ +/* $OpenBSD: ueagle.c,v 1.4 2005/07/07 20:16:44 canacar Exp $ */ /*- * Copyright (c) 2003-2005 @@ -1073,6 +1073,9 @@ ueagle_start(struct ifnet *ifp) if (!(sc->vcc.flags & UEAGLE_VCC_ACTIVE)) return; + if (sc->pipeh_tx == NULL) + return; + IFQ_POLL(&ifp->if_snd, m0); if (m0 == NULL) return; @@ -1348,7 +1351,7 @@ ueagle_init(struct ifnet *ifp) struct ueagle_softc *sc = ifp->if_softc; usbd_interface_handle iface; usbd_status error; - int len; + size_t len; ueagle_stop(ifp, 0); |