linux/drivers/net/wireless
Felix Fietkau 953519b352 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: cd372b8c99 ("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
2023-01-16 17:27:17 +02:00
..
admtek wifi: mac80211: add wake_tx_queue callback to drivers 2022-10-10 11:00:03 +02:00
ath wifi: ath9k: use proper statements in conditionals 2022-12-20 15:02:37 +02:00
atmel wifi: atmel: Fix atmel_private_handler array size 2022-11-01 12:30:22 +02:00
broadcom wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices 2023-01-16 13:26:55 +02:00
cisco wireless-next patches for v6.2 2022-11-18 11:44:36 +00:00
intel Including fixes from bpf, wifi, and netfilter. 2023-01-05 12:40:50 -08:00
intersil treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
marvell treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
mediatek wifi: mt76: dma: fix a regression in adding rx buffers 2023-01-16 17:27:17 +02:00
microchip treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
purelifi wifi: plfxlc: fix potential memory leak in __lf_x_usb_enable_rx() 2022-11-28 15:56:17 +02:00
quantenna treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
ralink Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-10 17:43:53 -08:00
realtek wifi: rtl8xxxu: fixing IQK failures for rtl8192eu 2022-12-08 16:53:35 +02:00
rsi wifi: rsi: Fix handling of 802.3 EAPOL frames sent via control port 2022-11-08 09:41:02 +02:00
silabs wifi: mac80211: add wake_tx_queue callback to drivers 2022-10-10 11:00:03 +02:00
st wireless-next patches for v6.2 2022-10-28 18:31:40 -07:00
ti wifi: ti: remove obsolete lines in the Makefile 2022-12-14 14:33:05 +02:00
zydas wifi: zd1201: Avoid clashing function prototypes 2022-11-16 11:31:47 +02:00
Kconfig
mac80211_hwsim.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-10 17:43:53 -08:00
mac80211_hwsim.h
Makefile
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c wifi: rndis_wlan: Prevent buffer overflow in rndis_query_oid 2023-01-16 13:27:54 +02:00
virt_wifi.c
wl3501_cs.c wifi: move from strlcpy with unused retval to strscpy 2022-09-02 11:47:22 +03:00
wl3501.h