mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-21 00:58:28 +08:00
cfg80211: fix refcount leak
The code in cfg80211's cfg80211_bss_update erroneously grabs a reference to the BSS, which means that it will never be freed. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Cc: stable@kernel.org [2.6.29, 2.6.30] Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
76d8b64e53
commit
2dce4c2b5f
@ -366,7 +366,6 @@ cfg80211_bss_update(struct cfg80211_registered_device *dev,
|
||||
found = rb_find_bss(dev, res);
|
||||
|
||||
if (found) {
|
||||
kref_get(&found->ref);
|
||||
found->pub.beacon_interval = res->pub.beacon_interval;
|
||||
found->pub.tsf = res->pub.tsf;
|
||||
found->pub.signal = res->pub.signal;
|
||||
|
Loading…
Reference in New Issue
Block a user