From 51e82c1e24b906c8913902c4dfc00feb1a1f6af4 Mon Sep 17 00:00:00 2001 From: Can Erkin Acar Date: Thu, 7 Jul 2005 20:16:45 +0000 Subject: ueagle.c --- sys/dev/usb/ueagle.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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); -- cgit v1.2.3