linux/drivers/net/ethernet/xilinx
Abin Joseph 8bbceba7dc net: xilinx: axienet: Add error handling for RX metadata pointer retrieval
Add proper error checking for dmaengine_desc_get_metadata_ptr() which
can return an error pointer and lead to potential crashes or undefined
behaviour if the pointer retrieval fails.

Properly handle the error by unmapping DMA buffer, freeing the skb and
returning early to prevent further processing with invalid data.

Fixes: 6a91b846af ("net: axienet: Introduce dmaengine support")
Signed-off-by: Abin Joseph <abin.joseph@amd.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Link: https://patch.msgid.link/20250903025213.3120181-1-abin.joseph@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-09-04 07:13:08 -07:00
..
Kconfig net: xilinx: axienet: Enable adaptive IRQ coalescing with DIM 2025-02-10 18:53:40 -08:00
Makefile
ll_temac.h net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
ll_temac_main.c net: ll_temac: Fix incorrect PHY node reference in debug message 2025-07-11 17:02:35 -07:00
ll_temac_mdio.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
xilinx_axienet.h net: xilinx: axienet: Enable adaptive IRQ coalescing with DIM 2025-02-10 18:53:40 -08:00
xilinx_axienet_main.c net: xilinx: axienet: Add error handling for RX metadata pointer retrieval 2025-09-04 07:13:08 -07:00
xilinx_axienet_mdio.c net: axienet: Fix kernel doc warnings 2024-03-29 12:41:22 -07:00
xilinx_emaclite.c net: emaclite: Fix missing pointer increment in aligned_read() 2025-07-11 16:37:06 -07:00