]> git.baikalelectronics.ru Git - kernel.git/commit
mt76x2: fix possible NULL pointer dereferencing in mt76x2_tx()
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Sat, 17 Mar 2018 11:29:27 +0000 (12:29 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Mar 2018 09:10:30 +0000 (12:10 +0300)
commit865fb58a83b60c789ec00204c5f2d68aaaa54bb6
treee57e5597d5d3895d43212c3ec43f7c41720cdc64
parent6a91a44601577b4ae859b79f5d3ac4f8fd8a3d8d
mt76x2: fix possible NULL pointer dereferencing in mt76x2_tx()

Fix a theoretical NULL pointer dereferencing in mt76x2_tx routine that
can occurs for injected frames in a monitor vif since vif pointer could
be NULL for that interfaces

Fixes: 13fd0294eae9 ("mt76: fix transmission of encrypted mgmt frames")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Acked-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x2_tx.c