diff options
| author | 2025-10-10 00:57:16 +0900 | |
|---|---|---|
| committer | 2025-10-23 16:24:28 +0200 | |
| commit | 61af1b2a7dec4ec95ce73e237e41f8a434152c18 (patch) | |
| tree | 34bbff169aa39eef3aa81389d9c754aa49a96b97 /tools/perf/scripts/python/bin/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
[ Upstream commit 65946eac6d888d50ae527c4e5c237dbe5cc3a2f2 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
