We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 126cd78 commit 3920a75Copy full SHA for 3920a75
drivers/net/ethernet/cadence/macb_main.c
@@ -5283,7 +5283,11 @@ static int macb_probe(struct platform_device *pdev)
5283
5284
#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
5285
if (GEM_BFEXT(DAW64, gem_readl(bp, DCFG6))) {
5286
- dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(44));
+ err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(44));
5287
+ if (err) {
5288
+ dev_err(&pdev->dev, "failed to set DMA mask\n");
5289
+ goto err_out_free_netdev;
5290
+ }
5291
bp->hw_dma_cap |= HW_DMA_CAP_64B;
5292
}
5293
#endif
0 commit comments