summaryrefslogtreecommitdiff
path: root/goodix_ts_proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'goodix_ts_proc.c')
-rw-r--r--goodix_ts_proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/goodix_ts_proc.c b/goodix_ts_proc.c
index 86657b4..a4ec32d 100644
--- a/goodix_ts_proc.c
+++ b/goodix_ts_proc.c
@@ -3455,7 +3455,7 @@ static ssize_t driver_test_write(struct file *file, const char __user *buf,
int cmd_val2;
u8 id;
- if (count > SHORT_SIZE) {
+ if (count >= SHORT_SIZE) { /* [GOOG] */
ts_err("invalid cmd size[%ld]", count);
return count;
}
@@ -3465,7 +3465,7 @@ static ssize_t driver_test_write(struct file *file, const char __user *buf,
ts_err("copy from user failed");
return count;
}
- p[strlen(p) - 1] = 0;
+ //p[strlen(p) - 1] = 0; /* [GOOG] */
vfree(rbuf);
rbuf = NULL;