Skip to content

Commit 3383176

Browse files
Zhang Changzhongkuba-moo
authored andcommitted
bnxt_en: fix error return code in bnxt_init_board()
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: c0c050c ("bnxt_en: New Broadcom ethernet driver.") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Zhang Changzhong <[email protected]> Reviewed-by: Edwin Peer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent b5f796b commit 3383176

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+1
-0
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11590,6 +11590,7 @@ static int bnxt_init_board(struct pci_dev *pdev, struct net_device *dev)
1159011590
if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)) != 0 &&
1159111591
dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)) != 0) {
1159211592
dev_err(&pdev->dev, "System does not support DMA, aborting\n");
11593+
rc = -EIO;
1159311594
goto init_err_disable;
1159411595
}
1159511596

0 commit comments

Comments
 (0)