diff options
Diffstat (limited to 'drivers/pci/hotplug/shpchp_core.c')
| -rw-r--r-- | drivers/pci/hotplug/shpchp_core.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/shpchp_core.c b/drivers/pci/hotplug/shpchp_core.c index a14e7de19846..235c18a22393 100644 --- a/drivers/pci/hotplug/shpchp_core.c +++ b/drivers/pci/hotplug/shpchp_core.c | |||
| @@ -449,10 +449,14 @@ static int shpc_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
| 449 | ctrl->speed = PCI_SPEED_33MHz; | 449 | ctrl->speed = PCI_SPEED_33MHz; |
| 450 | } | 450 | } |
| 451 | 451 | ||
| 452 | shpchp_create_ctrl_files(ctrl); | 452 | rc = shpchp_create_ctrl_files(ctrl); |
| 453 | if (rc) | ||
| 454 | goto err_cleanup_slots; | ||
| 453 | 455 | ||
| 454 | return 0; | 456 | return 0; |
| 455 | 457 | ||
| 458 | err_cleanup_slots: | ||
| 459 | cleanup_slots(ctrl); | ||
| 456 | err_out_release_ctlr: | 460 | err_out_release_ctlr: |
| 457 | ctrl->hpc_ops->release_ctlr(ctrl); | 461 | ctrl->hpc_ops->release_ctlr(ctrl); |
| 458 | err_out_free_ctrl: | 462 | err_out_free_ctrl: |
