diff options
author | 2025-04-29 10:55:27 +0530 | |
---|---|---|
committer | 2025-05-01 07:04:58 -0700 | |
commit | 2d52e2e38b85c8b7bc00dca55c2499f46f8c8198 (patch) | |
tree | b7d2c721deb8576ba5560a8c04a1dc5e9a6fc0e5 /drivers/net/ethernet/microchip/lan743x_main.h | |
parent | ptp: ocp: Fix NULL dereference in Adva board SMA sysfs operations (diff) | |
download | wireguard-linux-2d52e2e38b85c8b7bc00dca55c2499f46f8c8198.tar.xz wireguard-linux-2d52e2e38b85c8b7bc00dca55c2499f46f8c8198.zip |
net: lan743x: Fix memleak issue when GSO enabled
Always map the `skb` to the LS descriptor. Previously skb was
mapped to EXT descriptor when the number of fragments is zero with
GSO enabled. Mapping the skb to EXT descriptor prevents it from
being freed, leading to a memory leak
Fixes: 23f0703c125b ("lan743x: Add main source files for new lan743x driver")
Signed-off-by: Thangaraj Samynathan <thangaraj.s@microchip.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250429052527.10031-1-thangaraj.s@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/microchip/lan743x_main.h')
-rw-r--r-- | drivers/net/ethernet/microchip/lan743x_main.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/lan743x_main.h b/drivers/net/ethernet/microchip/lan743x_main.h index 7f73d66854be..db5fc73e41cc 100644 --- a/drivers/net/ethernet/microchip/lan743x_main.h +++ b/drivers/net/ethernet/microchip/lan743x_main.h @@ -980,6 +980,7 @@ struct lan743x_tx { u32 frame_first; u32 frame_data0; u32 frame_tail; + u32 frame_last; struct lan743x_tx_buffer_info *buffer_info; |