touchscreen: focaltech: fix coverity warning
authorYingyuan Zhu <yingyuan.zhu@amlogic.com>
Wed, 29 Aug 2018 09:20:14 +0000 (17:20 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 6 Sep 2018 13:58:17 +0000 (06:58 -0700)
commit3ff706aea42c79692b443b4b667822cad78f19ca
treebbab354ece11a841318d2542b67a07133d9e5c5b
parent3d00d913e5c76b16b339ed34709620b5e369176c
touchscreen: focaltech: fix coverity warning

PD#172715: touchscreen: focaltech: fix coverity warning

In the "copy_from_user" function does not ensure that
the string "writebuf" ends with a null character.So that
need to add a null character at the end.
This causes "String not null terminated".

Change-Id: I4cc0736ec06652226f39dd5dcde3dc7406639b89
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
drivers/amlogic/input/touchscreen/focaltech_touch/focaltech_ex_fun.c [changed mode: 0755->0644]