ge2d: fix ge2d coverity issue [1/1]
authorCao Jian <jian.cao@amlogic.com>
Thu, 14 Nov 2019 14:02:28 +0000 (22:02 +0800)
committerJian Cao <jian.cao@amlogic.com>
Mon, 9 Dec 2019 06:53:27 +0000 (23:53 -0700)
commit254b2e75cde8e2392afd7d0f5b949b9f4f824726
treec57febe189779bf2f04602b1a9abc7fdbf7f763c
parentd5c5f37ce82dfb8ab2475bf6393764d312c93e45
ge2d: fix ge2d coverity issue [1/1]

PD#SWPL-13975

Problem:
coverity defect cleanup for ge2d

Solution:
DEADCODE on aml_dmabuf_ops_attach()
RESOURCE_LEAK on aml_dma_alloc()
REVERSE_INULL on aml_dma_mmap()
USE_AFTER_FREE on aml_dma_put()
COPY_PASTE_ERROR&FORWARD_NULL on build_ge2d_config()

Verify:
coverity check

Change-Id: I1b80cb993254adb1721dfb2e5b25db0248dca1a6
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
(cherry picked from commit 801723a61128d84861d64ee5336e6054169fea8b)
drivers/amlogic/media/common/ge2d/ge2d_dmabuf.c
drivers/amlogic/media/common/ge2d/ge2d_wq.c