projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
835bed1
)
fbdev: cyber2000fb: fix missing pci_disable_device()
author
Yang Yingliang
<yangyingliang@huawei.com>
Mon, 24 Oct 2022 14:00:28 +0000
(22:00 +0800)
committer
Helge Deller
<deller@gmx.de>
Thu, 27 Oct 2022 18:29:59 +0000
(20:29 +0200)
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>
drivers/video/fbdev/cyber2000fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/cyber2000fb.c
b/drivers/video/fbdev/cyber2000fb.c
index 585af90a68a5f1c0f06c9101f0bcddf6938bc1ff..31ff1da82c05235dd7584e7f7143cee0b78c511b 100644
(file)
--- 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);
}
}