Skip to content

Commit 57fb540

Browse files
Qinglang Miaodanvet
authored andcommitted
drm/vgem: add missing platform_device_unregister() in vgem_init()
When vgem_init() get into out_put, the unregister call of vgem_device->platform is missing. So add it before return. Fixes: 363de9e ("drm/vgem: Use drmm_add_final_kfree") Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20200810125942.186637-1-miaoqinglang@huawei.com
1 parent 5bd858d commit 57fb540

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/gpu/drm/vgem/vgem_drv.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@ static int __init vgem_init(void)
471471

472472
out_put:
473473
drm_dev_put(&vgem_device->drm);
474+
platform_device_unregister(vgem_device->platform);
474475
return ret;
475-
476476
out_unregister:
477477
platform_device_unregister(vgem_device->platform);
478478
out_free:

0 commit comments

Comments
 (0)