Skip to content

Commit 2e7bf4a

Browse files
Yang Yingliangkuba-moo
authored andcommitted
net: axienet: add missing error return code in axienet_probe()
It should return error code in error path in axienet_probe(). Fixes: 00be43a ("net: axienet: make the 64b addresable DMA depends on 64b archectures") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20220616062917.3601-1-yangyingliang@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 593d1eb commit 2e7bf4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/xilinx/xilinx_axienet_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,6 +2039,7 @@ static int axienet_probe(struct platform_device *pdev)
20392039
}
20402040
if (!IS_ENABLED(CONFIG_64BIT) && lp->features & XAE_FEATURE_DMA_64BIT) {
20412041
dev_err(&pdev->dev, "64-bit addressable DMA is not compatible with 32-bit archecture\n");
2042+
ret = -EINVAL;
20422043
goto cleanup_clk;
20432044
}
20442045

0 commit comments

Comments
 (0)