Skip to contentSkip to conversation

wifi: mac80211: cancel color change finalize work when link is stopped

PATCH New Michael-CY Lee 1 participant 1 message Jul 5, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: mac80211: cancel color change finalize work when link is stopped

The color change finalize work might be called after the link is stopped, which might lead to a kernel crash.

---
 net/mac80211/link.c | 2 ++
 1 file changed, 2 insertions(+)
net/mac80211/link.c +2 -0
index 2e6e92defbca..1a211b8d4057 100644
@@ -71,6 +71,8 @@ void ieee80211_link_stop(struct ieee80211_link_data *link)
 		ieee80211_mgd_stop_link(link);
 
 	cancel_delayed_work_sync(&link->color_collision_detect_work);
+	wiphy_work_cancel(link->sdata->local->hw.wiphy,
+			  &link->color_change_finalize_work);
 	wiphy_work_cancel(link->sdata->local->hw.wiphy,
 			  &link->csa.finalize_work);
 	ieee80211_link_release_channel(link);
Signature · 1 line
2.25.1