Skip to content

Commit

Permalink
net: axienet: add missing error return code in axienet_probe()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Yang Yingliang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
Yang Yingliang authored and kuba-moo committed Jun 16, 2022
1 parent 593d1eb commit 2e7bf4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/xilinx/xilinx_axienet_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2039,6 +2039,7 @@ static int axienet_probe(struct platform_device *pdev)
}
if (!IS_ENABLED(CONFIG_64BIT) && lp->features & XAE_FEATURE_DMA_64BIT) {
dev_err(&pdev->dev, "64-bit addressable DMA is not compatible with 32-bit archecture\n");
ret = -EINVAL;
goto cleanup_clk;
}

Expand Down

0 comments on commit 2e7bf4a

Please sign in to comment.