1
linux/drivers/net/wwan/t7xx
Jinjie Ruan 3b557be89f net: wwan: t7xx: Fix off-by-one error in t7xx_dpmaif_rx_buf_alloc()
The error path in t7xx_dpmaif_rx_buf_alloc(), free and unmap the already
allocated and mapped skb in a loop, but the loop condition terminates when
the index reaches zero, which fails to free the first allocated skb at
index zero.

Check with i-- so that skb at index 0 is freed as well.

Cc: stable@vger.kernel.org
Fixes: d642b012df ("net: wwan: t7xx: Add data path interface")
Acked-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://patch.msgid.link/20241101025316.3234023-1-ruanjinjie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-11-03 07:59:30 -08:00
..
Makefile
t7xx_cldma.c
t7xx_cldma.h
t7xx_dpmaif.c
t7xx_dpmaif.h
t7xx_hif_cldma.c
t7xx_hif_cldma.h
t7xx_hif_dpmaif_rx.c net: wwan: t7xx: Fix off-by-one error in t7xx_dpmaif_rx_buf_alloc() 2024-11-03 07:59:30 -08:00
t7xx_hif_dpmaif_rx.h
t7xx_hif_dpmaif_tx.c
t7xx_hif_dpmaif_tx.h
t7xx_hif_dpmaif.c
t7xx_hif_dpmaif.h
t7xx_mhccif.c
t7xx_mhccif.h
t7xx_modem_ops.c net: wwan: t7xx: PCIe reset rescan 2024-08-21 12:57:24 +01:00
t7xx_modem_ops.h net: wwan: t7xx: PCIe reset rescan 2024-08-21 12:57:24 +01:00
t7xx_netdev.c
t7xx_netdev.h
t7xx_pci.c net: wwan: t7xx: PCIe reset rescan 2024-08-21 12:57:24 +01:00
t7xx_pci.h net: wwan: t7xx: PCIe reset rescan 2024-08-21 12:57:24 +01:00
t7xx_pcie_mac.c
t7xx_pcie_mac.h
t7xx_port_ctrl_msg.c
t7xx_port_proxy.c net: wwan: t7xx: PCIe reset rescan 2024-08-21 12:57:24 +01:00
t7xx_port_proxy.h
t7xx_port_trace.c net: wwan: t7xx: PCIe reset rescan 2024-08-21 12:57:24 +01:00
t7xx_port_wwan.c
t7xx_port.h
t7xx_reg.h
t7xx_state_monitor.c net: wwan: t7xx: PCIe reset rescan 2024-08-21 12:57:24 +01:00
t7xx_state_monitor.h