mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] wifi: ti: unwind failed interface additions
@ 2026-10-19  1:32 Jiale Yao
  2026-10-19  1:32 ` [PATCH 1/2] wifi: wl1251: " Jiale Yao
  2026-10-19  1:32 ` [PATCH 2/2] wifi: wlcore: " Jiale Yao
  0 siblings, 2 replies; 3+ messages in thread
From: Jiale Yao @ 2026-10-19  1:32 UTC (permalink / raw)
  To: Bob Copeland, John W. Linville, Kalle Valo, linux-wireless, linux-kernel
  Cc: Jiale Yao

mac80211 does not call remove_interface after add_interface returns an
error. Both wl1251 and wlcore retain state or resources acquired before
fallible setup operations, so a failed add can affect later interface
requests or leak firmware and host resources.

Make both add paths failure-atomic. The first patch delays publication
of the wl1251 vif and restores the previous interface state. The second
patch releases wlcore per-vif allocations and disables firmware roles
when later setup fails.

Jiale Yao (2):
  wifi: wl1251: unwind failed interface additions
  wifi: wlcore: unwind failed interface additions

 drivers/net/wireless/ti/wl1251/main.c | 17 +++++--
 drivers/net/wireless/ti/wlcore/main.c | 66 +++++++++++++++++----------
 2 files changed, 56 insertions(+), 27 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-19  1:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19  1:32 [PATCH 0/2] wifi: ti: unwind failed interface additions Jiale Yao
2026-10-19  1:32 ` [PATCH 1/2] wifi: wl1251: " Jiale Yao
2026-10-19  1:32 ` [PATCH 2/2] wifi: wlcore: " Jiale Yao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®