media: fix crash issue in codec_mm release [1/1]
authorHui Zhang <hui.zhang@amlogic.com>
Thu, 18 Apr 2019 11:18:22 +0000 (19:18 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Tue, 30 Apr 2019 02:16:52 +0000 (19:16 -0700)
commit01486d613e5fc98b28e3227ccee9e5e0ad90f6e4
tree38d9b70c431e586397256dda5184af9c95b17684
parent0d736ddd0638c4ca40a31cac098dfc9573de2697
media: fix crash issue in codec_mm  release [1/1]

PD#OTT-3314

Problem:
there  is a invalid codec_mm pointer. which may cause crash

Solution:
add valid check before codec_mm release

Verify:
X301

Change-Id: Ie9b31f1a830e949a27cc58468cced8a9e4268808
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
drivers/amlogic/media/common/codec_mm/codec_mm.c