Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Dec 2025 15:44:10 +0000
From:      Bjoern A. Zeeb <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 5d22abb18771 - stable/15 - LinuxKPI: 802.11: use a _check rather than a _protected version for linksta
Message-ID:  <6936f24a.38ac6.46bceed4@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help

The branch stable/15 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=5d22abb18771cb6c7578ff417bb801c7b4e8b51e

commit 5d22abb18771cb6c7578ff417bb801c7b4e8b51e
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-11-19 02:16:39 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-12-08 15:43:51 +0000

    LinuxKPI: 802.11: use a _check rather than a _protected version for linksta
    
    Switch to link_sta_dereference_check rather than _protected to access
    the value.  The actual problem we hit was elsewhere though.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 0021f70800a1d83a42e3a4dff10c352e67a1bcce)
---
 sys/compat/linuxkpi/common/include/net/mac80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/include/net/mac80211.h b/sys/compat/linuxkpi/common/include/net/mac80211.h
index ee1ace3684de..0eda07a8235c 100644
--- a/sys/compat/linuxkpi/common/include/net/mac80211.h
+++ b/sys/compat/linuxkpi/common/include/net/mac80211.h
@@ -1315,7 +1315,7 @@ ieee80211_hw_restart_disconnect(struct ieee80211_vif *vif)
     for (_linkid = 0; _linkid < nitems((_sta)->link); _linkid++)	\
 	if ( ((_vif)->active_links == 0 /* no MLO */ ||			\
 	    ((_vif)->active_links & BIT(_linkid)) != 0) &&		\
-	    (_linksta = link_sta_dereference_protected((_sta), (_linkid))) )
+	    (_linksta = link_sta_dereference_check((_sta), (_linkid))) )
 
 /* -------------------------------------------------------------------------- */
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6936f24a.38ac6.46bceed4>