From: Javier Lopez Date: Mon, 16 Dec 2013 18:01:07 +0000 (-0800) Subject: mac80211_hwsim: Fix NULL pointer dereference X-Git-Tag: v3.13-rc8~4^2~4^2^2~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0e30763f7ef9c7b7ff663204c9439bdbcac72ca;p=pandora-kernel.git 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 Signed-off-by: Johannes Berg --- Reading git-diff-tree failed