kernel - Fix lockmgr lock mismatch panics when iwn used without wlan
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 2 Feb 2012 03:43:26 +0000 (19:43 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 2 Feb 2012 03:43:26 +0000 (19:43 -0800)
commitb8b498ed88a72ccd6a0b0fd0d10a2061576f3a47
treeb5b9b6006c6540b71002539897fb0bf35537b631
parenta7192ccba0170ee6cfd468ef6bb8a05ba690339e
kernel - Fix lockmgr lock mismatch panics when iwn used without wlan

* If if_iwn is ifconfig'd without going through wlan the wlan_serializer
  is not held during the firmware load stage, resulting in a panic.
  Acquire the serializer for this case.

* Note: iwn worked fine with wlan, but this fixes an annoying panic when
  people try to mess with it without wlan.

Reported-by: fxr (irc)
sys/dev/netif/iwn/if_iwn.c