Skip to content
Commit d8ca16db authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent ae811e21
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment