diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2305-drm-amd-display-memory-leak-dwb.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2305-drm-amd-display-memory-leak-dwb.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2305-drm-amd-display-memory-leak-dwb.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2305-drm-amd-display-memory-leak-dwb.patch new file mode 100644 index 00000000..10022bd2 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2305-drm-amd-display-memory-leak-dwb.patch @@ -0,0 +1,32 @@ +From e5e757747eef2289aefc31fb647a5acae769eb7d Mon Sep 17 00:00:00 2001 +From: Tony Cheng <tony.cheng@amd.com> +Date: Sat, 19 Aug 2017 16:36:13 -0400 +Subject: [PATCH 2305/4131] drm/amd/display: memory leak dwb + +Signed-off-by: Tony Cheng <tony.cheng@amd.com> +Reviewed-by: Yongqiang Sun <yongqiang.sun@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 | 5 +++++ + 1 file changed, 5 insertions(+) + +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 8778749..b0b8a3f 100644 +--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c ++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c +@@ -747,6 +747,11 @@ static void destruct(struct dcn10_resource_pool *pool) + dce_aud_destroy(&pool->base.audios[i]); + } + ++ for (i = 0; i < pool->base.res_cap->num_dwb; i++) { ++ dm_free(pool->base.dwbc[i]); ++ pool->base.dwbc[i] = NULL; ++ } ++ + for (i = 0; i < pool->base.clk_src_count; i++) { + if (pool->base.clock_sources[i] != NULL) { + dcn10_clock_source_destroy(&pool->base.clock_sources[i]); +-- +2.7.4 + |