projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9ac521
)
drm/tegra: dc: Free syncpoint on errors
author
Thierry Reding
<treding@nvidia.com>
Fri, 4 May 2018 13:00:54 +0000
(15:00 +0200)
committer
Thierry Reding
<treding@nvidia.com>
Fri, 4 May 2018 15:07:06 +0000
(17:07 +0200)
If an error happens during display controller initialization, the host1x
syncpoint previously requested would be leaked. Properly clean up the
syncpoint along with the other resources.
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tegra/dc.c
b/drivers/gpu/drm/tegra/dc.c
index f20648f58e495e081123661117e97f06a994a244..c843f11043dbd06682ab9579e86aeccda6c2bd69 100644
(file)
--- a/
drivers/gpu/drm/tegra/dc.c
+++ b/
drivers/gpu/drm/tegra/dc.c
@@
-1925,6
+1925,8
@@
cleanup:
iommu_group_put(dc->group);
}
+ host1x_syncpt_free(dc->syncpt);
+
return err;
}