From efbb543f34e9b8d9844907a15268dc92caeb5643 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 3 Aug 1996 10:13:39 +0000 Subject: two bugs pointed out by thorpe --- sys/dev/isa/if_eg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/isa/if_eg.c b/sys/dev/isa/if_eg.c index 12cb9cf27a2..c871ce1ffe5 100644 --- a/sys/dev/isa/if_eg.c +++ b/sys/dev/isa/if_eg.c @@ -530,6 +530,7 @@ loop: dprintf(("egwritePCB in egstart failed\n")); ifp->if_oerrors++; ifp->if_flags &= ~IFF_OACTIVE; + m_freem(m0); goto loop; } @@ -556,10 +557,12 @@ egintr(arg) void *arg; { register struct eg_softc *sc = arg; + int ret = 0; int i, len; u_short *ptr; while (inb(sc->eg_stat) & EG_STAT_ACRF) { + ret = 1; egreadPCB(sc); switch (sc->eg_pcb[0]) { case EG_RSP_RECVPACKET: @@ -612,7 +615,7 @@ egintr(arg) } } - return 0; + return ret; } /* -- cgit v1.2.3