From: Johannes Berg Date: Mon, 3 Mar 2014 12:55:54 +0000 (+0100) Subject: cfg80211: remove racy beacon_interval assignment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bc00a91d627026f08abf69bf5d0015499dd30c2a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git cfg80211: remove racy beacon_interval assignment In case of AP mode, the beacon interval is already reset to zero inside cfg80211_stop_ap(), and in the other modes it isn't relevant. Remove the assignment to remove a potential race since the assignment isn't properly locked. Reported-by: Michal Kazior Signed-off-by: Johannes Berg --- diff --git a/net/wireless/core.c b/net/wireless/core.c index 010892b81a06..a3bf18d11609 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -788,8 +788,6 @@ void cfg80211_leave(struct cfg80211_registered_device *rdev, default: break; } - - wdev->beacon_interval = 0; } static int cfg80211_netdev_notifier_call(struct notifier_block *nb,