nl80211/cfg80211: Make addition of new sinfo fields safer
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 11 Aug 2011 08:46:22 +0000 (11:46 +0300)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Fri, 3 Feb 2012 13:54:57 +0000 (05:54 -0800)
commit433721b4cc57e3a6a34a9b013b1a4aac5a9e644f
tree5d6f57398ef8a1984e72d7ee8b10275fce9024ed
parentd09473cbe8bf2146ee99178050d9ba698131f80e
nl80211/cfg80211: Make addition of new sinfo fields safer

Add a comment pointing out the use of enum station_info_flags for
all new struct station_info fields. In addition, memset the sinfo
buffer to zero before use on all paths in the current tree to avoid
leaving uninitialized pointers in the data.

(cherry picked from commit 87159de9c30dab02b84cbaffa7498140d4ebc1a1 from
android.googlesource.com/common.git)

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I24301d45108587e66c8421a7f2a94ea98300ebeb
Reviewed-on: http://git-master/r/78887
Reviewed-by: Automatic_Commit_Validation_User
include/net/cfg80211.h
net/mac80211/sta_info.c
net/wireless/nl80211.c