aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2661-drm-amd-display-fix-bug-from-last-commit-for-hubbub.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2661-drm-amd-display-fix-bug-from-last-commit-for-hubbub.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2661-drm-amd-display-fix-bug-from-last-commit-for-hubbub.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2661-drm-amd-display-fix-bug-from-last-commit-for-hubbub.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2661-drm-amd-display-fix-bug-from-last-commit-for-hubbub.patch
new file mode 100644
index 00000000..e19ab569
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2661-drm-amd-display-fix-bug-from-last-commit-for-hubbub.patch
@@ -0,0 +1,45 @@
+From 6b8c672846dd7f769a852e348aaa680b86effb93 Mon Sep 17 00:00:00 2001
+From: Yue Hin Lau <Yuehin.Lau@amd.com>
+Date: Tue, 24 Oct 2017 11:40:50 -0400
+Subject: [PATCH 2661/4131] drm/amd/display: fix bug from last commit for
+ hubbub
+
+fix memory leak
+
+Signed-off-by: Yue Hin Lau <Yuehin.Lau@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
+index a208bd2..abb5434 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
+@@ -730,6 +730,12 @@ static void destruct(struct dcn10_resource_pool *pool)
+ kfree(TO_DCN10_MPC(pool->base.mpc));
+ pool->base.mpc = NULL;
+ }
++
++ if (pool->base.hubbub != NULL) {
++ kfree(pool->base.hubbub);
++ pool->base.hubbub = NULL;
++ }
++
+ for (i = 0; i < pool->base.pipe_count; i++) {
+ if (pool->base.opps[i] != NULL)
+ pool->base.opps[i]->funcs->opp_destroy(&pool->base.opps[i]);
+@@ -1453,7 +1459,7 @@ static bool construct(
+ }
+
+ pool->base.hubbub = dcn10_hubbub_create(ctx);
+- if (pool->base.mpc == NULL) {
++ if (pool->base.hubbub == NULL) {
+ BREAK_TO_DEBUGGER();
+ dm_error("DC: failed to create mpc!\n");
+ goto fail;
+--
+2.7.4
+