]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: fix possible NULL pointer dereference in mt76_tx
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 27 Apr 2021 10:05:00 +0000 (12:05 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 19 Jun 2021 07:22:43 +0000 (09:22 +0200)
commit54d63ae2b252d6b32c99e949dd426d2481a4fb7b
treef1b1746f2d63a1f5f651c7d52fe2fa3ab9d934dd
parent1716643a2b4a4d5bb8ac3f8f38064852dd66186b
mt76: fix possible NULL pointer dereference in mt76_tx

Even if this is not a real issue since mt76_tx is never run with wcid set
to NULL, fix a theoretical NULL pointer dereference in mt76_tx routine

Fixes: 476830bbe17b5 ("mt76: store wcid tx rate info in one u32 reduce locking")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/tx.c