]> Git Repo - linux.git/commitdiff
drm/vkms: Fix connector leak at the module removal
authorRodrigo Siqueira <[email protected]>
Thu, 19 Jul 2018 00:40:45 +0000 (21:40 -0300)
committerGustavo Padovan <[email protected]>
Sat, 28 Jul 2018 19:09:39 +0000 (16:09 -0300)
Currently, vkms shows an error message if the following steps occur: (1)
load vkms, (2) perform any specific operation in the vkms (e.g., run an
IGT test), and (3) unload the module. The following error message
emerges:

[drm:drm_mode_config_cleanup [drm]] *ERROR* connector Virtual-1 leaked!

This commit fixes this error by calling drm_atomic_helper_shutdown()
before drm_mode_config_cleanup, which turns off the whole display
pipeline and remove a reference related to any connector.

Signed-off-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Gustavo Padovan <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/vkms/vkms_drv.c

index 37aa2ef33b21337f0dea0c1d92ad5468343e760e..6e728b8252596e02745831eee0a5351f698d8c11 100644 (file)
@@ -44,6 +44,7 @@ static void vkms_release(struct drm_device *dev)
        struct vkms_device *vkms = container_of(dev, struct vkms_device, drm);
 
        platform_device_unregister(vkms->platform);
+       drm_atomic_helper_shutdown(&vkms->drm);
        drm_mode_config_cleanup(&vkms->drm);
        drm_dev_fini(&vkms->drm);
 }
This page took 0.061093 seconds and 4 git commands to generate.