summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-04-19 20:55:53 +0400
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-05-13 17:05:24 +0400
commit701d707c64f30a46510871513528b264e07a9634 (patch)
treeb922976990a84d1374b9c3b93d89cf2e153b6863 /drivers
parent113b66844ccd6eb3525c50a506e90b03155fdaf4 (diff)
downloadlinux-701d707c64f30a46510871513528b264e07a9634.tar.xz
drivers/video/intelfb/intelfbdrv.c: add missing agp_backend_release
Release bridge, as done on all other paths out of the function. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/intelfb/intelfbdrv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c
index 02fd2263610c..bdcbfbae2777 100644
--- a/drivers/video/intelfb/intelfbdrv.c
+++ b/drivers/video/intelfb/intelfbdrv.c
@@ -680,6 +680,7 @@ static int __devinit intelfb_pci_register(struct pci_dev *pdev,
+ dinfo->fb.size);
if (!dinfo->aperture.virtual) {
ERR_MSG("Cannot remap FB region.\n");
+ agp_backend_release(bridge);
cleanup(dinfo);
return -ENODEV;
}
@@ -689,6 +690,7 @@ static int __devinit intelfb_pci_register(struct pci_dev *pdev,
INTEL_REG_SIZE);
if (!dinfo->mmio_base) {
ERR_MSG("Cannot remap MMIO region.\n");
+ agp_backend_release(bridge);
cleanup(dinfo);
return -ENODEV;
}