From a46b373684c68c76009682d052f1187949c4e5d3 Mon Sep 17 00:00:00 2001 From: Jian Cao Date: Fri, 18 Jan 2019 15:33:52 +0800 Subject: [PATCH] ge2d: reset alloc flag when free dma buffer [1/2] PD#SWPL-4354 Problem: alloc flag is not correct when free dma buffer Solution: reset alloc flag when free dma buffer Verify: test pass on g12a-u200 Change-Id: I4aea27f38ebda72cfe77183423600c918b836d7c Signed-off-by: Jian Cao --- drivers/amlogic/media/common/ge2d/ge2d_dmabuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/amlogic/media/common/ge2d/ge2d_dmabuf.c b/drivers/amlogic/media/common/ge2d/ge2d_dmabuf.c index e5d6b65..5225e72 100644 --- a/drivers/amlogic/media/common/ge2d/ge2d_dmabuf.c +++ b/drivers/amlogic/media/common/ge2d/ge2d_dmabuf.c @@ -416,6 +416,7 @@ int ge2d_dma_buffer_free(struct aml_dma_buffer *buffer, int index) return (-EINVAL); } aml_dma_put(buf); + buffer->gd_buffer[index].alloc = 0; return 0; } -- 2.7.4