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 net: wwan: t7xx: do not compile with -Werror 2023-03-31 09:34:53 +01:00
t7xx_cldma.c net: wwan: t7xx: Split 64bit accesses to fix alignment issues 2024-03-25 19:51:57 -07:00
t7xx_cldma.h
t7xx_dpmaif.c
t7xx_dpmaif.h
t7xx_hif_cldma.c net: wwan: t7xx: Split 64bit accesses to fix alignment issues 2024-03-25 19:51:57 -07:00
t7xx_hif_cldma.h net: wwan: t7xx: Infrastructure for early port configuration 2024-02-09 12:07:48 +00:00
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 net: wwan: t7xx: Add NAPI support 2022-11-07 09:34:12 +00:00
t7xx_hif_dpmaif_tx.c net: wwan: t7xx: Use alloc_ordered_workqueue() to create ordered workqueues 2023-05-25 12:15:29 -10:00
t7xx_hif_dpmaif_tx.h
t7xx_hif_dpmaif.c net: wwan: t7xx: Fix Runtime PM resume sequence 2023-01-28 13:20:20 +00:00
t7xx_hif_dpmaif.h net: wwan: t7xx: Add NAPI support 2022-11-07 09:34:12 +00:00
t7xx_mhccif.c
t7xx_mhccif.h net: wwan: t7xx: Add AP CLDMA 2023-07-12 17:16:56 -07:00
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 net: wwan: t7xx: Un-embed dummy device 2024-04-25 19:32:31 -07:00
t7xx_netdev.h net: wwan: t7xx: Un-embed dummy device 2024-04-25 19:32:31 -07:00
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 net: wwan: t7xx: Split 64bit accesses to fix alignment issues 2024-03-25 19:51:57 -07:00
t7xx_pcie_mac.h
t7xx_port_ctrl_msg.c net: wwan: t7xx: Add AP CLDMA 2023-07-12 17:16:56 -07:00
t7xx_port_proxy.c net: wwan: t7xx: PCIe reset rescan 2024-08-21 12:57:24 +01:00
t7xx_port_proxy.h net: wwan: t7xx: Infrastructure for early port configuration 2024-02-09 12:07:48 +00:00
t7xx_port_trace.c net: wwan: t7xx: PCIe reset rescan 2024-08-21 12:57:24 +01:00
t7xx_port_wwan.c net: wwan: t7xx: Add fastboot WWAN port 2024-02-09 12:07:48 +00:00
t7xx_port.h net: wwan: t7xx: Infrastructure for early port configuration 2024-02-09 12:07:48 +00:00
t7xx_reg.h net: wwan: t7xx: Infrastructure for early port configuration 2024-02-09 12:07:48 +00:00
t7xx_state_monitor.c net: wwan: t7xx: PCIe reset rescan 2024-08-21 12:57:24 +01:00
t7xx_state_monitor.h net: wwan: t7xx: Infrastructure for early port configuration 2024-02-09 12:07:48 +00:00