diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2021-09-10 14:03:51 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2021-09-10 14:03:51 +0000 |
| commit | 6d042d7c861a8fffd1784c720720c3b89c7c0883 (patch) | |
| tree | 80649fa62b25d7a044e089950a0a6deb204b244d | |
| parent | f5777c123a6382f5fdc9732a87c8fa1ff672f148 (diff) | |
| download | src-6d042d7c861a8fffd1784c720720c3b89c7c0883.tar.gz src-6d042d7c861a8fffd1784c720720c3b89c7c0883.zip | |
wpi: Fix a lock leak in an error path in wpi_run()
PR: 258243
Reported by: dinghao.liu@zju.edu.cn
MFC after: 1 week
| -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; |
