]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: gr2d: Properly clean up resources
authorThierry Reding <treding@nvidia.com>
Fri, 4 May 2018 12:58:26 +0000 (14:58 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 4 May 2018 15:07:22 +0000 (17:07 +0200)
commit307c43297c6df667d3bf130706fc642a3b2e5045
treee0ecab4a6311c16bfd92d3c33aef849babc6bd96
parent775fa55a6f0cb61f793d68094e674985701f4d01
drm/tegra: gr2d: 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/gr2d.c