drm/tegra: gr3d: Properly clean up resources
authorThierry Reding <treding@nvidia.com>
Fri, 4 May 2018 13:08:49 +0000 (15:08 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 17 May 2018 12:03:30 +0000 (14:03 +0200)
commit230630bd3834af0ea6ec75354ec21819de148ee1
tree81958a8af4835a89511b0b2a6910855f8e924045
parentdd99b4b48833a55817d78a48034b606664b1fff8
drm/tegra: gr3d: Properly clean up resources

Failure to register the Tegra DRM client would leak the resources. Move
cleanup code to error unwinding gotos to fix that and share the cleanup
code with the other error paths.

Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/gr3d.c