gdc: fix gdc coverity issue [1/1]
authorCao Jian <jian.cao@amlogic.com>
Fri, 15 Nov 2019 02:59:19 +0000 (10:59 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 9 Dec 2019 12:09:32 +0000 (05:09 -0700)
commitd0cdf0fc95ff99cb6f6b779ec6cb86a9334e8b6b
tree5a87f35547d522ee0d6fe83a544d4463e570b2c8
parent254b2e75cde8e2392afd7d0f5b949b9f4f824726
gdc: fix gdc coverity issue [1/1]

PD#SWPL-13979

Problem:
coverity defect cleanup for gdc

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()
CHECKED_RETURN on gdc_platform_probe()
FORWARD_NULL on gdc_process_ex_info()/gdc_process_with_fw()
UNINIT on gdc_process_ex_info()/gdc_process_with_fw()
NO_EFFECT on gdc_log()

Verify:
coverity check

Change-Id: Iafd7eb5f74792300c68c50ffc5d0e36063cce906
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
(cherry picked from commit b28a8ac621c428437199386895a7ac3012e52905)
drivers/amlogic/media/gdc/app/gdc_dmabuf.c
drivers/amlogic/media/gdc/app/gdc_main.c
drivers/amlogic/media/gdc/app/gdc_module.c
drivers/amlogic/media/gdc/app/gdc_wq.c
drivers/amlogic/media/gdc/inc/sys/system_log.h