From: Antonio Quartulli Date: Fri, 26 Oct 2012 16:54:25 +0000 (+0200) Subject: mac80211: fix SSID copy on IBSS JOIN X-Git-Tag: v3.7-rc4~5^2~20^2^2~3^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=badecb001a310408d3473b1fc2ed5aefd0bc92a9;p=pandora-kernel.git 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 [rewrapped commit message, small rewording] Signed-off-by: Johannes Berg --- Reading git-diff-tree failed