Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/pci Cancel scan asserts ic lock.



details:   https://anonhg.NetBSD.org/src-all/rev/6d54d7acdc5f
branches:  trunk
changeset: 939201:6d54d7acdc5f
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sat May 23 01:10:46 2020 +1000

description:
Cancel scan asserts ic lock.

diffstat:

 sys/dev/pci/if_iwn.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 4d9d6329fc24 -r 6d54d7acdc5f sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Sat May 23 01:09:55 2020 +1000
+++ b/sys/dev/pci/if_iwn.c      Sat May 23 01:10:46 2020 +1000
@@ -844,8 +844,11 @@
        int error;
 
        error = iwn_scan(ic, ss);
-       if (error != 0)
+       if (error != 0) {
+               IEEE80211_LOCK(ic);
                ieee80211_cancel_scan(vap);
+               IEEE80211_UNLOCK(ic);
+       }
 }
 
 /*



Home | Main Index | Thread Index | Old Index