The branch stable/13 has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=476f87219f408343846254743c7189076be80c04

commit 476f87219f408343846254743c7189076be80c04
Author:     Mark Johnston <[email protected]>
AuthorDate: 2021-09-10 14:03:51 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2021-09-17 13:13:44 +0000

    wpi: Fix a lock leak in an error path in wpi_run()
    
    PR:             258243
    Reported by:    [email protected]
    
    (cherry picked from commit 6d042d7c861a8fffd1784c720720c3b89c7c0883)
---
 sys/dev/wpi/if_wpi.c | 1 +
 1 file changed, 1 insertion(+)

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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to