rt2x00: fix a crash bug in the HT descriptor handling fix
authorFelix Fietkau <nbd@openwrt.org>
Thu, 14 Nov 2013 20:33:15 +0000 (21:33 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Nov 2013 19:29:30 +0000 (14:29 -0500)
commitb4089d6d8e71a7293e2192025dfa507a04f661c4
treeedb7f9a85811f1b2950c103aed5c10583e329c4c
parent6fcbe538be43e360dc286da532f5add2fe7f46d8
rt2x00: fix a crash bug in the HT descriptor handling fix

Commit "rt2x00: fix HT TX descriptor settings regression"
assumes that the control parameter to rt2x00mac_tx is always non-NULL.
There is an internal call in rt2x00lib_bc_buffer_iter where NULL is
passed. Fix the resulting crash by adding an initialized dummy on-stack
ieee80211_tx_control struct.

Cc: stable@vger.kernel.org # 3.7+
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c