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
This commit is contained in:
Ping-Ke Shih 2025-01-22 14:03:10 +08:00
commit 8afa4ff99a
3 changed files with 10 additions and 4 deletions