mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiale Yao <yaojiale02@163.com>
To: Bob Copeland <me@bobcopeland.com>,
	"John W. Linville" <linville@tuxdriver.com>,
	Kalle Valo <kalle.valo@nokia.com>,
	linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Jiale Yao <yaojiale02@163.com>
Subject: [PATCH 0/2] wifi: ti: unwind failed interface additions
Date: Mon, 19 Oct 2026 09:32:22 +0800	[thread overview]
Message-ID: <20261019013224.1489500-1-yaojiale02@163.com> (raw)

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


             reply	other threads:[~2026-10-19  1:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19  1:32 Jiale Yao [this message]
2026-10-19  1:32 ` [PATCH 1/2] wifi: wl1251: " Jiale Yao
2026-10-19  1:32 ` [PATCH 2/2] wifi: wlcore: " Jiale Yao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261019013224.1489500-1-yaojiale02@163.com \
    --to=yaojiale02@163.com \
    --cc=kalle.valo@nokia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=me@bobcopeland.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®