phy: mdio-thunder: add missed pci_release_regions in remove
Subsystems (3)
PATCH 1/1 phy: mdio-thunder: add missed pci_release_regions in remove
The driver forgets to call pci_release_regions() in remove like that in probe failure.
Add the missed call to fix it.
Signed-off-by Chuhong Yuan <[email protected]>
--- drivers/net/phy/mdio-thunder.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/phy/mdio-thunder.c +1 -0
@@ -129,6 +129,7 @@ static void thunder_mdiobus_pci_remove(struct pci_dev *pdev)mdiobus_free (bus->mii_bus);oct_mdio_writeq (0 , bus->register_base +SMI_EN ); } +pci_release_regions (pdev);pci_set_drvdata (pdev,NULL ); }
Signature · 1 line
2.24.0
From: Chuhong Yuan <[email protected]>
Date: Fri, 6 Dec 2019 15:54:46 +0800
Quoted 5 lines
The driver forgets to call
pci_release_regions()in remove like that in probe failure.
Add the missed call to fix it.Signed-off-by Chuhong Yuan <[email protected]>
Applied.