git: kernel - Fix lockmgr lock mismatch panics when iwn used without wlan

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Feb 1 19:44:58 PST 2012


commit b8b498ed88a72ccd6a0b0fd0d10a2061576f3a47
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Feb 1 19:43:26 2012 -0800

    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)

Summary of changes:
 sys/dev/netif/iwn/if_iwn.c |   47 ++++++++++++++++++++++++++++++++-----------
 1 files changed, 35 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b8b498ed88a72ccd6a0b0fd0d10a2061576f3a47


-- 
DragonFly BSD source repository





More information about the Commits mailing list