summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--OWNERS1
-rw-r--r--goodix_ts_proc.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/OWNERS b/OWNERS
new file mode 100644
index 0000000..b011623
--- /dev/null
+++ b/OWNERS
@@ -0,0 +1 @@
+file:kernel/private/google-modules/soc/gs:android14-gs-pixel-5.15:/OWNERS
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;