ppmgr: Unbound kstrdup and Potential Null Dereference. [1/1]
authorrenjiang.han <renjiang.han@amlogic.com>
Thu, 4 Jul 2019 07:34:36 +0000 (15:34 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 25 Jul 2019 08:03:53 +0000 (01:03 -0700)
commita91050ea32a7a60409f2ed357e39db3631ee49a9
treef43b94dc856240e54b38970a73ddcf03ec4f907d
parentf9d7bffd8dd6195f80566f629c95b122237fe371
ppmgr: Unbound kstrdup and Potential Null Dereference. [1/1]

PD#OTT-4872

Problem:
Unbound kstrdup and Potential Null Dereference.

Solution:
Add a judgment on the return value and the null pointer.

Verify:
on u212

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