]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: annotate cfg80211_inform_bss
authorJohannes Berg <johannes.berg@intel.com>
Thu, 27 Oct 2011 12:45:02 +0000 (14:45 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Nov 2011 21:00:59 +0000 (16:00 -0500)
commit2a264037669f1e8f8d25d373bbebc835a9a00f69
tree60afaeb0de107b24430f870bd626c691e983a216
parent3cd95248d95aa447e1c2a56a5db487a818233751
cfg80211: annotate cfg80211_inform_bss

This function returns a referenced BSS struct
(or NULL), annotate with __must_check. It seems
that a lot of drivers get this completely wrong
and leak all BSS structs as a result.

Reported-by: Adam Mikuta <Adam.Mikuta@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/cfg80211.h