Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 2025 02:27:29 +0000
From:      Bjoern A. Zeeb <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0021f70800a1 - main - LinuxKPI: 802.11: use a _check rather than a _protected version for linksta
Message-ID:  <691d2b11.2d25d.3a415d84@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=0021f70800a1d83a42e3a4dff10c352e67a1bcce

commit 0021f70800a1d83a42e3a4dff10c352e67a1bcce
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-11-19 02:16:39 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-11-19 02:25:38 +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
    MFC after:      3 days
---
 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))) )
 
 /* -------------------------------------------------------------------------- */
 


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?691d2b11.2d25d.3a415d84>