]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:59:55 +0000 (16:59 +0200)
commit5a243b1cf25bf7dc421ed6681f1da4ead09dd9ea
tree00b14db4e56c756cf2fc9e86e603447e2a0e3cd2
parentf125a9a9f1b2dc9bf7bc8a694ce763822f9e7592
mt76: fix possible NULL pointer dereference in mt76_tx

[ Upstream commit d7400a2f3e295b8cee692c7a66e10f60015a3c37 ]

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: db9f11d3433f7 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/tx.c