]> exis.tech > repos - linux.git/blobdiff - drivers/input/touchscreen/mms114.c
Merge tag 'hwmon-for-v7.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/groec...
[linux.git] / drivers / input / touchscreen / mms114.c
index 53ad35d61d476c12955edff69b52b12dc44bd898..5cef97246a1584e2b2444b6dafce262bc91adf17 100644 (file)
@@ -165,7 +165,7 @@ static void mms114_process_mt(struct mms114_data *data, struct mms114_touch *tou
        unsigned int x;
        unsigned int y;
 
-       if (touch->id > MMS114_MAX_TOUCH) {
+       if (touch->id == 0 || touch->id > MMS114_MAX_TOUCH) {
                dev_err(&client->dev, "Wrong touch id (%d)\n", touch->id);
                return;
        }