From 6b052a80c01f351a55987587b7e6739fa8aea981 Mon Sep 17 00:00:00 2001 From: Deva Ramasubramanian Date: Thu, 11 Apr 2013 18:22:01 -0700 Subject: [PATCH] msm: vidc: Don't free shared memory on channel close The driver already frees the memory in vcd_ddl.c at ddl_close(). No need to prematurely free the memory here. Signed-off-by: Deva Ramasubramanian --- drivers/video/msm/vidc/1080p/ddl/vcd_ddl_helper.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/msm/vidc/1080p/ddl/vcd_ddl_helper.c b/drivers/video/msm/vidc/1080p/ddl/vcd_ddl_helper.c index fda795c1a9a2..20fdf4069a34 100644 --- a/drivers/video/msm/vidc/1080p/ddl/vcd_ddl_helper.c +++ b/drivers/video/msm/vidc/1080p/ddl/vcd_ddl_helper.c @@ -404,8 +404,6 @@ void ddl_release_client_internal_buffers(struct ddl_client_context *ddl) encoder->dynamic_prop_change = 0; ddl_free_enc_hw_buffers(ddl); } - ddl_pmem_free(&ddl->shared_mem[0]); - ddl_pmem_free(&ddl->shared_mem[1]); } u32 ddl_codec_type_transact(struct ddl_client_context *ddl,