drm/tegra: fb: Properly release GEM objects on failure
authorThierry Reding <treding@nvidia.com>
Thu, 6 Nov 2014 13:33:19 +0000 (14:33 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 15:18:33 +0000 (16:18 +0100)
commitb88f005ea38f29b50e55fc7eb25d92ea78a2eeab
tree5ee6deb92ef5aa4e3a7dbf6e6fd68be4043a50b5
parent9aaa0cebcb3ebabd52a2a269a50fe3525d8deed1
drm/tegra: fb: Properly release GEM objects on failure

When fbdev initialization fails, make sure to unreference the GEM
objects properly. Note that we can't do this in the general error
unwinding path because ownership of the GEM object references is
transferred to the framebuffer upon creation.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/fb.c