summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-08-19 16:57:52 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-09-15 12:39:46 +0200
commit463670f98048a4243fff3fe98431092f4c9bc23c (patch)
tree5d051ab03d43078e1b0fc4e22f46d568958da22e /drivers/video
parentf6c72233e2f0cc10a40d7f448ee123bcff322509 (diff)
downloadlinux-stable-463670f98048a4243fff3fe98431092f4c9bc23c.tar.gz
linux-stable-463670f98048a4243fff3fe98431092f4c9bc23c.tar.bz2
linux-stable-463670f98048a4243fff3fe98431092f4c9bc23c.zip
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 84a3778552eb..ec1f8af165e9 100644
--- a/drivers/video/fbdev/chipsfb.c
+++ b/drivers/video/fbdev/chipsfb.c
@@ -432,6 +432,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;
}