Files
linux/drivers/net/ethernet/dlink
Yeounsu Moon 65946eac6d net: dlink: handle dma_map_single() failure properly
There is no error handling for `dma_map_single()` failures.

Add error handling by checking `dma_mapping_error()` and freeing
the `skb` using `dev_kfree_skb()` (process context) when it fails.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Yeounsu Moon <[email protected]>
Tested-on: D-Link DGE-550T Rev-A3
Suggested-by: Simon Horman <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2025-10-12 19:02:16 +01:00
..
2025-09-02 15:49:41 -07:00