[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1533200699-124300-1-git-send-email-weiyongjun1@huawei.com>
Date: Thu, 2 Aug 2018 09:04:59 +0000
From: Wei Yongjun <weiyongjun1@...wei.com>
To: David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel.vetter@...ll.ch>,
Rodrigo Siqueira <rodrigosiqueiramelo@...il.com>,
Gustavo Padovan <gustavo.padovan@...labora.com>,
Haneen Mohammed <hamohammed.sa@...il.com>
CC: Wei Yongjun <weiyongjun1@...wei.com>,
<dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>,
<kernel-janitors@...r.kernel.org>
Subject: [PATCH -next] drm/vkms: Fix the error handling in vkms_init()
In the drm_vblank_init() error handling case, platform device
unregister is missing. This patch fix it.
Fixes: 3a0709928b17 ("drm/vkms: Add vblank events simulated by hrtimers")
Signed-off-by: Wei Yongjun <weiyongjun1@...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 6e728b8..5ad09d4 100644
--- a/drivers/gpu/drm/vkms/vkms_drv.c
+++ b/drivers/gpu/drm/vkms/vkms_drv.c
@@ -110,7 +110,7 @@ static int __init vkms_init(void)
ret = drm_vblank_init(&vkms_device->drm, 1);
if (ret) {
DRM_ERROR("Failed to vblank\n");
- goto out_fini;
+ goto out_unregister;
}
ret = vkms_modeset_init(vkms_device);
Powered by blists - more mailing lists