Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic If the interface is not marked as running, abort ...



details:   https://anonhg.NetBSD.org/src/rev/525aa4bf29ba
branches:  trunk
changeset: 476494:525aa4bf29ba
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Sep 17 21:57:36 1999 +0000

description:
If the interface is not marked as running, abort tlp_intr() early.

diffstat:

 sys/dev/ic/tulip.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r c71e1ee9e569 -r 525aa4bf29ba sys/dev/ic/tulip.c
--- a/sys/dev/ic/tulip.c        Fri Sep 17 21:55:01 1999 +0000
+++ b/sys/dev/ic/tulip.c        Fri Sep 17 21:57:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tulip.c,v 1.10 1999/09/14 23:23:32 thorpej Exp $       */
+/*     $NetBSD: tulip.c,v 1.11 1999/09/17 21:57:36 thorpej Exp $       */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -826,6 +826,13 @@
 
        DPRINTF(sc, ("%s: tlp_intr\n", sc->sc_dev.dv_xname));
 
+       /*
+        * If the interface isn't running, the interrupt couldn't
+        * possibly have come from us.
+        */
+       if ((ifp->if_flags & IFF_RUNNING) == 0)
+               return (0);
+
        for (;;) {
                status = TULIP_READ(sc, CSR_STATUS);
                if (status)



Home | Main Index | Thread Index | Old Index