0059-iwn-Fix-a-couple-of-missed-serializer-misuses.patch

josepht, 02/01/2011 12:57 PM

Download (1.1 KB)

View differences:

sys/dev/netif/iwn/if_iwn.c
3359 3359

  
3360 3360
	sc = ifp->if_softc;
3361 3361

  
3362
	wlan_serialize_enter();
3362 3363
	iwn_start_locked(ifp);
3364
	wlan_serialize_exit();
3363 3365
}
3364 3366

  
3365 3367
static void
......
6405 6407
	struct iwn_softc *sc = device_get_softc(dev);
6406 6408

  
6407 6409
	wlan_serialize_enter();
6408
	iwn_stop(sc);
6410
	iwn_stop_locked(sc);
6409 6411
	wlan_serialize_exit();
6410 6412

  
6411 6413
	return 0;
......
6448 6450
		if (vap != NULL)
6449 6451
			ieee80211_init(vap);
6450 6452
		if (ifp->if_flags & IFF_RUNNING)
6451
			iwn_start(ifp);
6453
			iwn_start_locked(ifp);
6452 6454
	}
6453 6455
	wlan_serialize_exit();
6454 6456

  
6455
-