Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
drivers
/
input
/
touchscreen
/
elants_i2c.c
diff --git
a/kernel/drivers/input/touchscreen/elants_i2c.c
b/kernel/drivers/input/touchscreen/elants_i2c.c
index
ac09855
..
486f8fe
100644
(file)
--- a/
kernel/drivers/input/touchscreen/elants_i2c.c
+++ b/
kernel/drivers/input/touchscreen/elants_i2c.c
@@
-905,9
+905,9
@@
static irqreturn_t elants_i2c_irq(int irq, void *_dev)
case QUEUE_HEADER_NORMAL:
report_count = ts->buf[FW_HDR_COUNT];
case QUEUE_HEADER_NORMAL:
report_count = ts->buf[FW_HDR_COUNT];
- if (report_count > 3) {
+ if (report_count
== 0 || report_count
> 3) {
dev_err(&client->dev,
dev_err(&client->dev,
- "
too large
report count: %*ph\n",
+ "
bad
report count: %*ph\n",
HEADER_SIZE, ts->buf);
break;
}
HEADER_SIZE, ts->buf);
break;
}