drm/bochs: deinit bugfix
Subsystems (3)
PATCH 1/1 drm/bochs: deinit bugfix
Check whenever mode_config was actually properly
initialized before trying to clean it up.
Signed-off-by Gerd Hoffmann <[email protected]>
--- drivers/gpu/drm/bochs/bochs_kms.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/bochs/bochs_kms.c +3 -0
@@ -164,6 +164,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); }
Signature · 1 line
2.18.1
Quoted 4 lines · Gerd Hoffmann
Check whenever
mode_configwas actually properly
initialized before trying to clean it up.Signed-off-by Gerd Hoffmann <[email protected]>
Reviewed-by Daniel Vetter <[email protected]>
Really need to get managed drm cleanup going ...
-Daniel
Quoted 21 lines
--- drivers/gpu/drm/bochs/bochs_kms.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/bochs/bochs_kms.c +3
-0@@ -164,6 +164,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); }Signature · 1 line
2.18.1
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch