]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe7292c478fb1452e2f479cdae20b8df4e3e94e2
tree81958a8af4835a89511b0b2a6910855f8e924045
parent307c43297c6df667d3bf130706fc642a3b2e5045
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