Re: [PATCH AUTOSEL 4.14] wifi: cfg80211: lock wiphy mutex for rfkill poll

From: Johannes Berg
Date: Mon Dec 04 2023 - 15:50:38 EST


On Mon, 2023-12-04 at 15:37 -0500, Sasha Levin wrote:
>
> +++ b/net/wireless/core.c
> @@ -202,7 +202,9 @@ static void cfg80211_rfkill_poll(struct rfkill *rfkill, void *data)
> {
> struct cfg80211_registered_device *rdev = data;
>
> + wiphy_lock(&rdev->wiphy);

This can't even _build_ on this old kernel?!

Anyway, my locking rework only went into 6.7, so this doesn't make sense
in any stable kernel, it's just not required.

johannes