提交 348f6682 编写于 作者: Y Yang Yingliang 提交者: Jialin Zhang

fbdev: chipsfb: Add missing pci_disable_device() in chipsfb_pci_init()

stable inclusion
from stable-v5.10.143
commit 2078e326b64e9a5ccb67ccc9ebab9b70a2637613
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0U6

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2078e326b64e9a5ccb67ccc9ebab9b70a2637613

--------------------------------

[ Upstream commit 07c55c98 ]

Add missing pci_disable_device() in error path in chipsfb_pci_init().
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NHelge Deller <deller@gmx.de>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 6d819a14
...@@ -430,6 +430,7 @@ static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent) ...@@ -430,6 +430,7 @@ static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent)
err_release_fb: err_release_fb:
framebuffer_release(p); framebuffer_release(p);
err_disable: err_disable:
pci_disable_device(dp);
err_out: err_out:
return rc; return rc;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册