mt76: fix possible NULL pointer dereferencing in mt76x2_ampdu_action()
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Thu, 14 Dec 2017 12:03:16 +0000 (13:03 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 17 Jan 2018 14:49:06 +0000 (16:49 +0200)
commit99ac5327e902a56ca21365ed3d6e5249fe296ba6
tree028077fd5355f25cb36b997cecdbb01b31265197
parent70c8de0c154d6f40be75d12882756d126bbc4967
mt76: fix possible NULL pointer dereferencing in mt76x2_ampdu_action()

Initialize mt76_txq pointer after ieee80211_txq pointer check.
Remove space after the pointer cast

Fixes: 7bc04215a66b ("mt76: add driver code for MT76x2e")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x2_main.c