]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: pci: not assert wiphy_lock to free early_h2c for PCI probe/remove
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 22 Jan 2025 06:03:10 +0000 (14:03 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 3 Feb 2025 02:30:16 +0000 (10:30 +0800)
commit8afa4ff99a00cd3f3c8aedd6b92ad6fc077021b7
tree902eb1cf92167f320a386ca8ed74aabaf2a382e3
parent2345f351c7f55b97c17d8387a9ff38d4327baf4b
wifi: rtw89: pci: not assert wiphy_lock to free early_h2c for PCI probe/remove

Except probe/remove flow, the consumers of early_h2c list are interface
start and debugfs. There must be no race between probe/remove flow and
interface start. The failed probe flow is to free early_h2c list as well
as remove flow, at these two moments debugfs doesn't present. Thus, it is
safe to free early_h2c list without held wiphy_lock in these situations.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250122060310.31976-11-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/fw.h