[PATCH wireless-next 0/2] wifi: wfx: fix two minor issues in error paths

From: Jérôme Pouiller

Date: Sun Sep 06 2026 - 16:49:51 EST


Both patches of this series fix minor issues located in error paths of
the wfx driver. Neither of them is likely to be hit in practice and both
have been there for years (since 2020).

They were found during the review of the series "wifi: wfx: fix possible
device hang during init" [1], which reworks the error path of
wfx_probe(): the first one by the Sashiko review bot, the second one by
Alexander Sverdlin.

The first patch cancels a delayed work that could fire after the device
has been removed and dereference the freed struct wfx_dev. The second one
makes wfx_probe() return a proper errno instead of a leftover positive
value when the firmware enforces the 'secure link' feature.

Note that AI tools have been involved in both patches. See the individual
changelogs for the details.

This series applies on top of [1].

[1]: https://lore.kernel.org/all/20260901083548.113131-1-jerome.pouiller@xxxxxxxxxx/

Jérôme Pouiller (2):
wifi: wfx: fix use-after-free of the cooling work on device removal
wifi: wfx: fix error code on unsupported firmware

drivers/net/wireless/silabs/wfx/main.c | 3 +++
1 file changed, 3 insertions(+)

--
2.47.3