Project

General

Profile

Bug #1964 » 0059-iwn-Fix-a-couple-of-missed-serializer-misuses.patch

josepht, 02/01/2011 12:57 PM

View differences:

sys/dev/netif/iwn/if_iwn.c
sc = ifp->if_softc;
wlan_serialize_enter();
iwn_start_locked(ifp);
wlan_serialize_exit();
}
static void
......
struct iwn_softc *sc = device_get_softc(dev);
wlan_serialize_enter();
iwn_stop(sc);
iwn_stop_locked(sc);
wlan_serialize_exit();
return 0;
......
if (vap != NULL)
ieee80211_init(vap);
if (ifp->if_flags & IFF_RUNNING)
iwn_start(ifp);
iwn_start_locked(ifp);
}
wlan_serialize_exit();
(3-3/3)