]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc1954bee17cfe7c7b09851d367adf790a53c764
tree028077fd5355f25cb36b997cecdbb01b31265197
parent0f081a7b15823ccdcd60a1071b70bfde11dc2ceb
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: a5cc4a4a96dc ("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