[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200810130011.187691-1-miaoqinglang@huawei.com>
Date: Mon, 10 Aug 2020 21:00:11 +0800
From: Qinglang Miao <miaoqinglang@...wei.com>
To: Rodrigo Siqueira <rodrigosiqueiramelo@...il.com>,
Haneen Mohammed <hamohammed.sa@...il.com>,
Daniel Vetter <daniel@...ll.ch>,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>
CC: David Airlie <airlied@...ux.ie>, <dri-devel@...ts.freedesktop.org>,
<linux-kernel@...r.kernel.org>, <miaoqinglang@...wei.com>
Subject: [PATCH] drm/vkms: add missing platform_device_unregister() in vkms_init()
When vkms_init() get into out_put, the unregister call of
vkms_device->platform is missing. So add it before return.
Fixes: c27f0cc4d43a "drm/vkms: enable cursor by default"
Signed-off-by: Qinglang Miao <miaoqinglang@...wei.com>
---
drivers/gpu/drm/vkms/vkms_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/vkms/vkms_drv.c b/drivers/gpu/drm/vkms/vkms_drv.c
index 57a8a397d..83dd5567d 100644
--- a/drivers/gpu/drm/vkms/vkms_drv.c
+++ b/drivers/gpu/drm/vkms/vkms_drv.c
@@ -190,8 +190,8 @@ static int __init vkms_init(void)
out_put:
drm_dev_put(&vkms_device->drm);
+ platform_device_unregister(vkms_device->platform);
return ret;
-
out_unregister:
platform_device_unregister(vkms_device->platform);
out_free:
--
2.25.1
Powered by blists - more mailing lists