ppmgr: Add IS_ERR_OR_NULL to determine if the thread exists [1/1]
authorrenjiang.han <renjiang.han@amlogic.com>
Thu, 16 May 2019 08:34:31 +0000 (16:34 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 17 May 2019 06:30:53 +0000 (23:30 -0700)
commit8bbc052df4711057692f9a0a816c32c73503e8a2
tree2bb7b95deca71e3c4042120314fa0a3b377ffb12
parent97d8a70bb0df8b2579ef542ab84f655aeaddc59b
ppmgr: Add IS_ERR_OR_NULL to determine if the thread exists [1/1]

PD#SWPL-8658

Problem:
handle is NULL cause kernel panic.

Solution:
Add IS_ERR_OR_NULL to prevent hanle from being NULL
to cause kernel panic.

Verify:
on T962X2

Change-Id: I3086a497d99646e6475a93b5a53b3c9aca2d2ada
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
drivers/amlogic/media/video_processor/ppmgr/ppmgr_vpp.c