summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/chipsfb.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-08-19 10:57:52 +0200
committerHelge Deller <deller@gmx.de>2022-08-24 21:47:09 +0200
commit07c55c9803dea748d17a054000cbf1913ce06399 (patch)
treeb7d8cd03018cf6dd818332d292fb0a329c2ed6ee /drivers/video/fbdev/chipsfb.c
parentfbdev: fbcon: Destroy mutex on freeing struct fb_info (diff)
downloadlinux-07c55c9803dea748d17a054000cbf1913ce06399.tar.xz
linux-07c55c9803dea748d17a054000cbf1913ce06399.zip
fbdev: chipsfb: Add missing pci_disable_device() in chipsfb_pci_init()
Add missing pci_disable_device() in error path in chipsfb_pci_init(). Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video/fbdev/chipsfb.c')
-rw-r--r--drivers/video/fbdev/chipsfb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/chipsfb.c b/drivers/video/fbdev/chipsfb.c
index 393894af26f8..2b00a9d554fc 100644
--- a/drivers/video/fbdev/chipsfb.c
+++ b/drivers/video/fbdev/chipsfb.c
@@ -430,6 +430,7 @@ static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent)
err_release_fb:
framebuffer_release(p);
err_disable:
+ pci_disable_device(dp);
err_out:
return rc;
}