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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2013 19:11:43 +0000 (11:11 -0800)
commit1f44b29361e380645b2fc43f760fc0c7032e5c05
tree9ee03aa30d2bf1f2ff176daf41372db32ba2f1fa
parent55c00c5afd3e9adfb5f7ea556b652b3aab0f3871
rt2x00: fix a crash bug in the HT descriptor handling fix

commit b4089d6d8e71a7293e2192025dfa507a04f661c4 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/rt2x00/rt2x00dev.c