diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-02 15:46:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-30 14:39:09 -0700 |
commit | 5c8affc6e16f6bad03b5c23d25b2c774b817160a (patch) | |
tree | 021a1498bb42f8db13270721caf1c6e44ebdff49 /net | |
parent | df42c57d32622dca010595fe13c86c93a7fc68ea (diff) |
cfg80211: fix refcount leak
commit 2dce4c2b5f0b43bd25bf9ea6ded06b7f8a54c91f upstream.
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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/scan.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 1f260c40b6c..bc7f7882986 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c @@ -365,7 +365,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; |