wifi: mt76: dma: do not increment queue head if mt76_dma_add_buf fails
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 13 Jan 2023 10:58:46 +0000 (11:58 +0100)
committerKalle Valo <kvalo@kernel.org>
Mon, 16 Jan 2023 15:27:16 +0000 (17:27 +0200)
commit1132d1c834d6185c89aef07c860fc143a6f2db93
treebcbfca89077158d4e003a814079c65c44631723e
parentb870e73a56c4cccbec33224233eaf295839f228c
wifi: mt76: dma: do not increment queue head if mt76_dma_add_buf fails

Do not increment queue head if mt76_dma_add_buf fails for Wireless
Ethernet Dispatcher rx queues.

Fixes: cd372b8c99c5 ("wifi: mt76: add WED RX support to mt76_dma_{add,get}_buf")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit fe13dad8992be0b26c1be390bcd111acf9892c17)
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230113105848.34642-1-nbd@nbd.name
drivers/net/wireless/mediatek/mt76/dma.c