|
@@ -375,6 +375,7 @@ static int __devinit agp_efficeon_probe(struct pci_dev *pdev,
|
|
|
if (!r->start && r->end) {
|
|
|
if (pci_assign_resource(pdev, 0)) {
|
|
|
printk(KERN_ERR PFX "could not assign resource 0\n");
|
|
|
+ agp_put_bridge(bridge);
|
|
|
return -ENODEV;
|
|
|
}
|
|
|
}
|
|
@@ -386,6 +387,7 @@ static int __devinit agp_efficeon_probe(struct pci_dev *pdev,
|
|
|
*/
|
|
|
if (pci_enable_device(pdev)) {
|
|
|
printk(KERN_ERR PFX "Unable to Enable PCI device\n");
|
|
|
+ agp_put_bridge(bridge);
|
|
|
return -ENODEV;
|
|
|
}
|
|
|
|