]> 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)
commit6b82f1cfff7d9074b5cbbd36b682590e413f1dea
tree60afaeb0de107b24430f870bd626c691e983a216
parent2510c22d186f9e1ad4b43ed1ba54f66f5200bb43
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