Skip to content
Commit c0e30763 authored by Javier Lopez's avatar Javier Lopez Committed by Johannes Berg
Browse files

mac80211_hwsim: Fix NULL pointer dereference



mac80211_hwsim was crashing when receiving tx information from user
space. Crash happens because txi->rate_driver_data[0] is pointing to a
non valid memory address.

This code path is only used by wmediumd and wmediumd doesn't provide
multiple channel support, so we can pass the channel struct
(data2->channel) directly to mac80211_hwsim_monitor_ack function.

Signed-off-by: default avatarJavier Lopez <jlopex@cozybit.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent bd02cd25
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