touchscreen: goodix_gt1x: fix coverity warning
authorYingyuan Zhu <yingyuan.zhu@amlogic.com>
Wed, 29 Aug 2018 10:51:32 +0000 (18:51 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 6 Sep 2018 14:01:19 +0000 (07:01 -0700)
commit2bc5fc8909ea44b795f0ef83f85e3269369bb4a9
treebc37718fa164d35749fdf02e833340be72b3bf8d
parent35a6b7fa1d9bb6c204c5641fc98db27d359f31f1
touchscreen: goodix_gt1x: fix coverity warning

PD#172714: touchscreen: goodix_gt1x: fix coverity warning

There is no judgment about whether it is null before
using the pointer.
This causes "Untrusted value as argument".

Change-Id: I147b89e9a96cddf4bdc3c42753bd165b6b802065
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
drivers/amlogic/input/touchscreen/goodix_gt1x/gt1x_extents.c