Pass correct argument to lwkt_serialize_{enter, exit}()
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 20 Jan 2006 12:25:28 +0000 (12:25 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 20 Jan 2006 12:25:28 +0000 (12:25 +0000)
Submitted-by: Alexey Slynko <slynko at tronet.ru>
sys/dev/netif/awi/if_awi_pccard.c

index 9f00210..d00ad40 100644 (file)
@@ -23,7 +23,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/dev/awi/if_awi_pccard.c,v 1.5.2.1 2000/12/07 04:09:39 imp Exp $
- * $DragonFly: src/sys/dev/netif/awi/Attic/if_awi_pccard.c,v 1.15 2005/12/31 14:07:58 sephe Exp $
+ * $DragonFly: src/sys/dev/netif/awi/Attic/if_awi_pccard.c,v 1.16 2006/01/20 12:25:28 sephe Exp $
  */
 
 #include <sys/param.h>
@@ -239,13 +239,13 @@ awi_pccard_detach(device_t dev)
        struct awi_softc *sc = &psc->sc_awi;
        struct ifnet *ifp = &sc->sc_ec.ac_if;
 
-       lwkt_serialize_enter(&ifp->if_serializer);
+       lwkt_serialize_enter(ifp->if_serializer);
        ifp->if_flags &= ~IFF_RUNNING; 
        if (psc->sc_intrhand) {
                bus_teardown_intr(dev, psc->sc_irq_res, psc->sc_intrhand);
                psc->sc_intrhand = 0;
        }
-       lwkt_serialize_exit(&ifp->if_serializer);
+       lwkt_serialize_exit(ifp->if_serializer);
 
        ether_ifdetach(ifp);