From: Johannes Berg Date: Thu, 23 Jan 2014 15:20:29 +0000 (+0100) Subject: mac80211: add length check in ieee80211_is_robust_mgmt_frame() X-Git-Tag: v3.15-rc1~113^2~289^2^2~101^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8ca16db6bb23d03fcb794df44bae64ae976f27c;p=pandora-kernel.git mac80211: add length check in ieee80211_is_robust_mgmt_frame() A few places weren't checking that the frame passed to the function actually has enough data even though the function clearly documents it must have a payload byte. Make this safer by changing the function to take an skb and checking the length inside. The old version is preserved for now as the rtl* drivers use it and don't have a correct skb. Signed-off-by: Johannes Berg --- Reading git-diff-tree failed