vdin: change "IS_ERR" invoking to "IS_ERR_OR_NULL" [1/1]
authorzhiwei.yuan <zhiwei.yuan@amlogic.com>
Tue, 22 Oct 2019 08:28:39 +0000 (16:28 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 23 Oct 2019 12:24:37 +0000 (05:24 -0700)
commit764a9e6bd6d1a30cb8e105b85a6f61d2ddd005dd
tree4dcd2e24a6dacd37ae9d30f2106e0a5398a011c0
parent1c2bc5f90f2173ed02d451486fbc17d39c23889a
vdin: change "IS_ERR" invoking to "IS_ERR_OR_NULL" [1/1]

PD#SWPL-15522

Problem:
kernel panic caused by NULL pointer

Solution:
check pointer before access members of structure

Verify:
verified by t962x2_x301

Change-Id: Ia20192bb88d90b06d43c04e6e4e6aa37b2862aa2
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
drivers/amlogic/media/vin/tvin/vdin/vdin_debug.c
drivers/amlogic/media/vin/tvin/vdin/vdin_drv.c