]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix SSID copy on IBSS JOIN
authorAntonio Quartulli <ordex@autistici.org>
Fri, 26 Oct 2012 16:54:25 +0000 (18:54 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Oct 2012 20:52:18 +0000 (22:52 +0200)
commit235bc1620a9ff36873fc0e6a64f806733b336c11
tree3c39faabf192afce572be53b96bb65ad07ea7183
parent935a803076a9e9cf05073131e6f08e09e5442d9a
mac80211: fix SSID copy on IBSS JOIN

The 'ssid' field of the cfg80211_ibss_params is a u8 pointer and
its length is likely to be less than IEEE80211_MAX_SSID_LEN most
of the time.

This patch fixes the ssid copy in ieee80211_ibss_join() by using
the SSID length to prevent it from reading beyond the string.

Cc: stable@vger.kernel.org
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
[rewrapped commit message, small rewording]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c