diff options
| author | 2025-10-10 00:57:16 +0900 | |
|---|---|---|
| committer | 2025-10-12 19:02:16 +0100 | |
| commit | 65946eac6d888d50ae527c4e5c237dbe5cc3a2f2 (patch) | |
| tree | 767605a77b00f3547b8996490944bd7ea5717087 /include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com | |
| parent | net: mtk: wed: add dma mask limitation and GFP_DMA32 for device with more than 4GB DRAM (diff) | |
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: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Yeounsu Moon <yyyynoom@gmail.com>
Tested-on: D-Link DGE-550T Rev-A3
Suggested-by: Simon Horman <horms@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
