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 8f3d9f3 commit 1b54ae8Copy full SHA for 1b54ae8
drivers/pci/probe.c
@@ -909,9 +909,10 @@ static int pci_register_host_bridge(struct pci_host_bridge *bridge)
909
goto free;
910
911
err = device_register(&bridge->dev);
912
- if (err)
+ if (err) {
913
put_device(&bridge->dev);
914
-
+ goto free;
915
+ }
916
bus->bridge = get_device(&bridge->dev);
917
device_enable_async_suspend(bus->bridge);
918
pci_set_bus_of_node(bus);
0 commit comments