Skip to content

Commit b5f796b

Browse files
Zhang Changzhongkuba-moo
authored andcommitted
bnxt_en: fix error return code in bnxt_init_one()
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: c213eae ("bnxt_en: Improve VF/PF link change logic.") 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 4d02da9 commit b5f796b

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
@@ -12674,6 +12674,7 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1267412674
create_singlethread_workqueue("bnxt_pf_wq");
1267512675
if (!bnxt_pf_wq) {
1267612676
dev_err(&pdev->dev, "Unable to create workqueue.\n");
12677+
rc = -ENOMEM;
1267712678
goto init_err_pci_clean;
1267812679
}
1267912680
}

0 commit comments

Comments
 (0)