diff options
| author | Chenguang Zhao <zhaochenguang@kylinos.cn> | 2026-07-23 10:18:20 +0800 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2026-07-29 09:33:10 +0100 |
| commit | 51b093a7ba27476e1f639455f005e8d2e75390e4 (patch) | |
| tree | 5429f0030b3fa48061adae0ed9c857975221e934 /include/linux/stacktrace.h | |
| parent | c870f7e2890b9f78ac84515a9809cc5c183c975e (diff) | |
net: sxgbe: check descriptor ring allocation failures
sxgbe_open() ignores the return value of init_dma_desc_rings() and
continues to program DMA with invalid ring addresses when allocation
fails. Check the return value and disconnect the PHY on failure.
Fixes: 1edb9ca69e8a ("net: sxgbe: add basic framework for Samsung 10Gb ethernet driver")
Signed-off-by: Chenguang Zhao <zhaochenguang@kylinos.cn>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions
