]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vkms: Fix connector leak at the module removal
authorRodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Thu, 19 Jul 2018 00:40:45 +0000 (21:40 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.com>
Sat, 28 Jul 2018 19:09:39 +0000 (16:09 -0300)
commit21f819b49148cd026e804df130db43b30d5a28c2
tree9dc8f297d90fa1ff44e9584a34f9fc59b482a398
parent218f69be25c8b407d4d72cbbb8ff60981fdea7cd
drm/vkms: Fix connector leak at the module removal

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 <rodrigosiqueiramelo@gmail.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180719004045.hzepp565x5lfco3c@smtp.gmail.com
drivers/gpu/drm/vkms/vkms_drv.c