]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: make ieee80211_build_preq_ies safer
authorJohannes Berg <johannes.berg@intel.com>
Thu, 29 Nov 2012 11:45:18 +0000 (12:45 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 30 Nov 2012 12:41:26 +0000 (13:41 +0100)
commit6908f556336aba57c57ea8831469ea1cf61ab7f6
tree01f8773dbdc25cc7d044b0e371acf3a763af1604
parent129ca458a9c89ada7281865251e3e2cdf897fdd7
mac80211: make ieee80211_build_preq_ies safer

Instead of assuming 200 bytes are always enough for
all the IEs we add, give the length of the buffer
to the function and warn instead of overrunning.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/scan.c
net/mac80211/util.c