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:45:19 +0000 (19:45 -0800)
commitd2e7f0d14e326d61e28608cea197d12c1ee9be5d
tree6b2e527315f5f40a6c109279e4d21ed2ee56e880
parentb60e3fd0b0654b7103d8a27eabb832ba9cec8edc
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