]> git.baikalelectronics.ru Git - 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)
committerFelix Fietkau <nbd@nbd.name>
Fri, 4 Dec 2020 12:46:15 +0000 (13:46 +0100)
commit9b42cc220ae65776d8bacbb1d77e351727079540
tree2e61a1a94a43527e15f1e2bde334264affc2894d
parent03382d8c247f733effb85816e0804f7b6000c5d5
mt76: mt7663s: fix a possible ple quota underflow

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

Fixes: 0fbae55916a4 ("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>
drivers/net/wireless/mediatek/mt76/mt7615/sdio_txrx.c