picdec: memory pollution caused by GE2D [1/1]
authorJian Cao <jian.cao@amlogic.com>
Tue, 11 Jun 2019 14:32:22 +0000 (22:32 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 14 Jun 2019 13:23:58 +0000 (06:23 -0700)
commit77d3281bf7d843d59b2e6f79b9577eb5c377350e
treeb120e89d662939c3574b0581c32493a5c279aaf1
parent879c56a477995db5efb00ec486c8eaa780ae4e45
picdec: memory pollution caused by GE2D [1/1]

PD#OTT-4501

Problem:
the dst canvas phy address for ge2d is overwritten
out of bound before processing

Solution:
alloc canvas index dynamically

Verify:
verified on g12b-w400

Change-Id: If021c087125928d5fb146118432c7ff427ea0dbb
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
drivers/amlogic/media/video_processor/pic_dev/picdec.c