summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-10-24 16:00:28 +0200
committerHelge Deller <deller@gmx.de>2022-10-27 20:29:59 +0200
commit3c6bf6bddc84888c0ce163b09dee0ddd23b5172a (patch)
treee487a5808a2b0a28640e8e047d03974b4dc02130
parentfbdev: sisfb: use explicitly signed char (diff)
downloadlinux-3c6bf6bddc84888c0ce163b09dee0ddd23b5172a.tar.xz
linux-3c6bf6bddc84888c0ce163b09dee0ddd23b5172a.zip
fbdev: cyber2000fb: fix missing pci_disable_device()
Add missing pci_disable_device() in error path of probe() and remove() path. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--drivers/video/fbdev/cyber2000fb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/cyber2000fb.c b/drivers/video/fbdev/cyber2000fb.c
index 585af90a68a5..31ff1da82c05 100644
--- a/drivers/video/fbdev/cyber2000fb.c
+++ b/drivers/video/fbdev/cyber2000fb.c
@@ -1796,6 +1796,7 @@ failed_ioremap:
failed_regions:
cyberpro_free_fb_info(cfb);
failed_release:
+ pci_disable_device(dev);
return err;
}
@@ -1812,6 +1813,7 @@ static void cyberpro_pci_remove(struct pci_dev *dev)
int_cfb_info = NULL;
pci_release_regions(dev);
+ pci_disable_device(dev);
}
}