wifi: mt76: mt7996: fix possible NULL pointer dereference in mt7996_mac_write_txwi()
authorLorenzo Bianconi <lorenzo@kernel.org>
Sun, 28 May 2023 10:28:49 +0000 (12:28 +0200)
committerKalle Valo <kvalo@kernel.org>
Thu, 1 Jun 2023 13:17:33 +0000 (16:17 +0300)
commitead449023d3acb1424886d7b8cc672ed69bdd27e
tree8498f93adb5cd27411952ebbe3ae39f9c1ea74c4
parentb408f33b35a4de606bfbd0de33b8f971bc5488ba
wifi: mt76: mt7996: fix possible NULL pointer dereference in mt7996_mac_write_txwi()

Fix possible NULL pointer dereference on mvif pointer in
mt7996_mac_write_txwi routine.

Fixes: 15ee62e73705 ("wifi: mt76: mt7996: enable BSS_CHANGED_BASIC_RATES support")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/2637628a84f42ad6d7b774e706f041d5b45c8cb5.1685269638.git.lorenzo@kernel.org
drivers/net/wireless/mediatek/mt76/mt7996/mac.c