]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mt76: mt7663s: fix a possible ple quota underflow
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 5 Oct 2020 15:22:23 +0000 (17:22 +0200)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 4 Jan 2021 15:37:15 +0000 (16:37 +0100)
commitc1de6e6dd5ab3c5c555f59b30d0dde790a09e1e9
tree2395d351b0bb00bc6fef6c864d4a6fa55564f5d3
parent8d2a1b809d550e1713c6827caec6526506bd0da6
mt76: mt7663s: fix a possible ple quota underflow

BugLink: https://bugs.launchpad.net/bugs/1910111
[ Upstream commit 1c79a190e94325e01811f653f770a34e816fdd8f ]

Properly account current consumed ple quota in mt7663s_tx_pick_quota
routine and avoid possible underflow.

Fixes: 6ef2d665f64d ("mt76: mt7663s: split mt7663s_tx_update_sched in mt7663s_tx_{pick,update}_quota")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/wireless/mediatek/mt76/mt7615/sdio_txrx.c