diff options
author | Mark Johnston <markj@FreeBSD.org> | 2021-09-10 14:03:51 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2021-09-17 13:13:44 +0000 |
commit | 476f87219f408343846254743c7189076be80c04 (patch) | |
tree | a4a133418fa14917d683e774a03a4610c0f86ea2 | |
parent | cdb6f3d41686b71dd0e804bdee5f094f9130268d (diff) | |
download | src-476f87219f408343846254743c7189076be80c04.tar.gz src-476f87219f408343846254743c7189076be80c04.zip |
wpi: Fix a lock leak in an error path in wpi_run()
PR: 258243
Reported by: dinghao.liu@zju.edu.cn
(cherry picked from commit 6d042d7c861a8fffd1784c720720c3b89c7c0883)
-rw-r--r-- | sys/dev/wpi/if_wpi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c index dd8b17c8d21c..3d4e80ab61ad 100644 --- a/sys/dev/wpi/if_wpi.c +++ b/sys/dev/wpi/if_wpi.c @@ -4547,6 +4547,7 @@ wpi_run(struct wpi_softc *sc, struct ieee80211vap *vap) sc->rxon.chan, sc->rxon.flags); if ((error = wpi_send_rxon(sc, 0, 1)) != 0) { + WPI_RXON_UNLOCK(sc); device_printf(sc->sc_dev, "%s: could not send RXON\n", __func__); return error; |