fbdev: cyber2000fb: fix missing pci_disable_device()

Add missing pci_disable_device() in error path of probe() and remove() path.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Yang Yingliang 2022-10-24 22:00:28 +08:00 committed by Helge Deller
parent 835bed1b83
commit 3c6bf6bddc

View File

@ -1796,6 +1796,7 @@ failed_ioremap:
failed_regions: failed_regions:
cyberpro_free_fb_info(cfb); cyberpro_free_fb_info(cfb);
failed_release: failed_release:
pci_disable_device(dev);
return err; return err;
} }
@ -1812,6 +1813,7 @@ static void cyberpro_pci_remove(struct pci_dev *dev)
int_cfb_info = NULL; int_cfb_info = NULL;
pci_release_regions(dev); pci_release_regions(dev);
pci_disable_device(dev);
} }
} }