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)
committerDmitry Shmidt <dimitrysh@google.com>
Tue, 24 Jan 2012 23:33:15 +0000 (15:33 -0800)
commit87159de9c30dab02b84cbaffa7498140d4ebc1a1
tree0239ff8486bf98b9a19c8199dd2b09e5cff73c29
parentd692df224b8605095cb7f770c1c99d3150834daf
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.

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>
include/net/cfg80211.h
net/mac80211/sta_info.c
net/wireless/nl80211.c