git: 0021f70800a1 - main - LinuxKPI: 802.11: use a _check rather than a _protected version for linksta
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Nov 2025 02:27:29 UTC
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))) )
/* -------------------------------------------------------------------------- */