Skip to content

Commit a01cfcf

Browse files
Justin LaiPaolo Abeni
authored andcommitted
rtase: Corrects error handling of the rtase_check_mac_version_valid()
Previously, when the hardware version ID was determined to be invalid, only an error message was printed without any further handling. Therefore, this patch makes the necessary corrections to address this. Fixes: a36e9f5 ("rtase: Add support for a pci table in this module") Signed-off-by: Justin Lai <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent c1fc14c commit a01cfcf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/realtek/rtase/rtase_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2122,6 +2122,7 @@ static int rtase_init_one(struct pci_dev *pdev,
21222122
dev_err(&pdev->dev,
21232123
"unknown chip version: 0x%08x, contact rtase maintainers (see MAINTAINERS file)\n",
21242124
tp->hw_ver);
2125+
goto err_out_release_board;
21252126
}
21262127

21272128
rtase_init_software_variable(pdev, tp);
@@ -2196,6 +2197,7 @@ static int rtase_init_one(struct pci_dev *pdev,
21962197
netif_napi_del(&ivec->napi);
21972198
}
21982199

2200+
err_out_release_board:
21992201
rtase_release_board(pdev, dev, ioaddr);
22002202

22012203
return ret;

0 commit comments

Comments
 (0)