summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-08-19 11:57:52 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-09-15 12:32:03 +0300
commit2078e326b64e9a5ccb67ccc9ebab9b70a2637613 (patch)
tree1cec5c8deb11e42ac6bb2e4065d0f92c50ae41e0 /drivers/video
parent9d040a629e7e7965c70e3ff16e1a8180470b8746 (diff)
downloadlinux-2078e326b64e9a5ccb67ccc9ebab9b70a2637613.tar.xz
fbdev: chipsfb: Add missing pci_disable_device() in chipsfb_pci_init()
[ Upstream commit 07c55c9803dea748d17a054000cbf1913ce06399 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/video')
-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;
}