]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix potential BSS memory leak and update
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 6 Mar 2013 09:31:05 +0000 (10:31 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 7 Mar 2013 11:55:32 +0000 (12:55 +0100)
commit88477e0cd41b6da1288b0620c9c70d745d7b35e8
tree34aa5009c25c2937362318260bbb6aa5c49df4f9
parent81dcf0918d930e850c25c74873e3a66fea4f9847
cfg80211: fix potential BSS memory leak and update

In the odd case that while updating information from a beacon,
a BSS was found that is part of a hidden group, we drop the
new information. In this case, however, we leak the IE buffer
from the update, and erroneously update the entry's timestamp
so it will never time out. Fix both these issues.

Cc: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c