Skip to content

wifi: wfx: fix two minor issues in error paths

Jérôme Pouiller linux-wireless lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2wifi: wfx: fix use-after-free of the cooling work on device removaldrivers/net/wireless/silabs/wfx/main.c+2 -01 reply
2/2wifi: wfx: fix error code on unsupported firmwaredrivers/net/wireless/silabs/wfx/main.c+1 -03 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAlexander Sverdlin
1/2T-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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/[email protected]/

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(+)
Signature · 1 line
2.47.3