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 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
t7xx_hif_dpmaif_tx.c
t7xx_hif_dpmaif_tx.h
t7xx_hif_dpmaif.c
t7xx_hif_dpmaif.h net: wwan: t7xx: Add NAPI support 2022-11-07 09:34:12 +00:00
t7xx_mhccif.c net: wwan: t7xx: Device deep sleep lock/unlock 2022-05-09 10:51:59 +01:00
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 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 net: wwan: t7xx: Add core components 2022-05-09 10:51:59 +01:00
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 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
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