wifi: mt76: dma: do not increment queue head if mt76_dma_add_buf fails
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 7 Dec 2022 21:49:31 +0000 (22:49 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 9 Dec 2022 15:45:39 +0000 (16:45 +0100)
commitfe13dad8992be0b26c1be390bcd111acf9892c17
treeb2750ad8e7630cb3eec8dff293a533d999f64f3c
parent12a88d4d307e227b9ada9377ea49ce2b79f165f5
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>
drivers/net/wireless/mediatek/mt76/dma.c