diff options
author | Felix Fietkau <nbd@nbd.name> | 2023-01-13 11:58:48 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-01-16 17:27:17 +0200 |
commit | 953519b35227d5dbbb5c5724f1f539735fbf7781 (patch) | |
tree | bc0107a3d7dfb31ebec91ea85a40e53ac4c2733e /ipc/msgutil.c | |
parent | e5c3ac895750b39ef53b84ff4814617ecd69d556 (diff) | |
download | linux-953519b35227d5dbbb5c5724f1f539735fbf7781.tar.bz2 |
wifi: mt76: dma: fix a regression in adding rx buffers
When adding WED support, mt76_dma_add_buf was accidentally changed to set
the skip_buf0 flag for tx buffers on the wrong queue descriptor entry.
Additionally, there is a rxwi leak when rx buffer allocation fails.
Fix this and make the code more readable by adding a separate function for
adding rx buffers.
Reported-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Tested-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Link: https://lore.kernel.org/r/CABXGCsMEnQd=gYKTd1knRsWuxCb=Etv5nAre%2BXJS_s5FgVteYA@mail.gmail.com/
Reported-by: Mike Lothian <mike@fireburn.co.uk>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216829
Reported-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/lkml/20230112171706.294550-1-angelogioacchino.delregno@collabora.com/
Fixes: cd372b8c99c5 ("wifi: mt76: add WED RX support to mt76_dma_{add,get}_buf")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230113105848.34642-3-nbd@nbd.name
Diffstat (limited to 'ipc/msgutil.c')
0 files changed, 0 insertions, 0 deletions