Skip to content

Commit

Permalink
drm: sti: correctly cleanup CRTC and planes
Browse files Browse the repository at this point in the history
When bind failed make sure that CRTC and planes are
completely clean up to avoid properties duplication.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
  • Loading branch information
Benjamin Gaignard committed Dec 11, 2014
1 parent 4fdbc67 commit f78e772
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/gpu/drm/sti/sti_drm_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@ static int sti_drm_load(struct drm_device *dev, unsigned long flags)
sti_drm_mode_config_init(dev);

ret = component_bind_all(dev->dev, dev);
if (ret)
if (ret) {
drm_kms_helper_poll_fini(dev);
drm_mode_config_cleanup(dev);
kfree(private);
return ret;
}

drm_helper_disable_unused_functions(dev);

Expand Down

0 comments on commit f78e772

Please sign in to comment.