fbdev: pm2fb: fix missing pci_disable_device()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 12 Nov 2022 09:55:10 +0000 (17:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:43 +0000 (13:32 +0100)
commit85255669ce724241d6c5a241864db7a3135f7329
tree43439b238e5a036ffc009782711a78763e890944
parent3be1f75453696decf3e04c1bf26ddf9119efbc27
fbdev: pm2fb: fix missing pci_disable_device()

[ Upstream commit ed359a464846b48f76ea6cc5cd8257e545ac97f4 ]

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

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/pm2fb.c