]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: Fix NULL pointer dereference
authorJavier Lopez <jlopex@cozybit.com>
Mon, 16 Dec 2013 18:01:07 +0000 (10:01 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 16 Dec 2013 20:17:07 +0000 (21:17 +0100)
commitcba6511881798536283e2f90f8cfb1c14340166e
tree2ced3780e0ad6715e60a3b08c9194b84fa91df7b
parent3c9304f1f052903e25040e6c013b59a8ed0b700a
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: Javier Lopez <jlopex@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c