Skip to content

Commit

Permalink
DRM: Armada: destroy framebuffer after helper
Browse files Browse the repository at this point in the history
Destroy the framebuffer only after the helper, since the helper may
still be referencing the framebufer at this point.

Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Dec 10, 2013
1 parent 2f5ae49 commit 077acba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/armada/armada_fbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ void armada_fbdev_fini(struct drm_device *dev)
framebuffer_release(info);
}

drm_fb_helper_fini(fbh);

if (fbh->fb)
fbh->fb->funcs->destroy(fbh->fb);

drm_fb_helper_fini(fbh);

priv->fbdev = NULL;
}
}

0 comments on commit 077acba

Please sign in to comment.