Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/dev/usb Fix locking botch.



details:   https://anonhg.NetBSD.org/src-all/rev/da1c7ab1bfbc
branches:  trunk
changeset: 370430:da1c7ab1bfbc
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Thu Oct 15 14:14:08 2020 +1100

description:
Fix locking botch.

diffstat:

 sys/dev/usb/if_urtwn.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 9a5d2f1826f5 -r da1c7ab1bfbc sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Fri Oct 09 17:22:42 2020 +1100
+++ b/sys/dev/usb/if_urtwn.c    Thu Oct 15 14:14:08 2020 +1100
@@ -2568,6 +2568,7 @@
                break;
        }
        mutex_exit(&sc->sc_write_mtx);
+       mutex_exit(&sc->sc_state_mtx);
        splx(s);
 
        return (*uvap->newstate)(vap, nstate, arg);



Home | Main Index | Thread Index | Old Index