Source-Changes-HG archive

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

[src/trunk]: src/sys/lkm/net/ethfoo/ethfoo ETHFOO_GOING had no chance to actu...



details:   https://anonhg.NetBSD.org/src/rev/0c1fe1c82cae
branches:  trunk
changeset: 572088:0c1fe1c82cae
user:      cube <cube%NetBSD.org@localhost>
date:      Fri Dec 17 12:17:09 2004 +0000

description:
ETHFOO_GOING had no chance to actually be useful if sc_flags is set to 0
in ethfoo_dev_close().

diffstat:

 sys/lkm/net/ethfoo/ethfoo/ethfoo_lkm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 45608ddeb53d -r 0c1fe1c82cae sys/lkm/net/ethfoo/ethfoo/ethfoo_lkm.c
--- a/sys/lkm/net/ethfoo/ethfoo/ethfoo_lkm.c    Fri Dec 17 10:53:27 2004 +0000
+++ b/sys/lkm/net/ethfoo/ethfoo/ethfoo_lkm.c    Fri Dec 17 12:17:09 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ethfoo_lkm.c,v 1.14 2004/12/13 19:40:56 cube Exp $     */
+/*     $NetBSD: ethfoo_lkm.c,v 1.15 2004/12/17 12:17:09 cube Exp $     */
 
 /*
  *  Copyright (c) 2003, 2004 The NetBSD Foundation.
@@ -901,8 +901,6 @@
        struct ifnet *ifp;
        int s;
 
-       sc->sc_flags = 0;       /* Remove ASYNCIO flag, too */
-
        s = splnet();
        /* Let ethfoo_start handle packets again */
        ifp = &sc->sc_ec.ec_if;
@@ -924,6 +922,8 @@
        }
        splx(s);
 
+       sc->sc_flags &= ~(ETHFOO_INUSE | ETHFOO_ASYNCIO);
+
        return (0);
 }
 



Home | Main Index | Thread Index | Old Index