Merge tag 'v4.10-rc5' into next
[muen/linux.git] / drivers / input / touchscreen / elants_i2c.c
index 740e4483f4fdf69e523f9044cac82f829847e5fc..872750eeca9325cbb3a9140b0686da4a2f5cbdfa 100644 (file)
@@ -914,9 +914,9 @@ static irqreturn_t elants_i2c_irq(int irq, void *_dev)
 
                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,
-                                       "too large report count: %*ph\n",
+                                       "bad report count: %*ph\n",
                                        HEADER_SIZE, ts->buf);
                                break;
                        }