drm/bochs: deinit bugfix
Check whenever mode_config was actually properly initialized before trying to clean it up. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20200207124348.21641-1-kraxel@redhat.com
This commit is contained in:
parent
cb05ec5886
commit
e59a2508d9
|
@ -163,6 +163,9 @@ int bochs_kms_init(struct bochs_device *bochs)
|
|||
|
||||
void bochs_kms_fini(struct bochs_device *bochs)
|
||||
{
|
||||
if (!bochs->dev->mode_config.num_connector)
|
||||
return;
|
||||
|
||||
drm_atomic_helper_shutdown(bochs->dev);
|
||||
drm_mode_config_cleanup(bochs->dev);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue