]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elants_i2c - fix division by zero if firmware reports zero phys size
authorDmitry Osipenko <digetx@gmail.com>
Fri, 26 Mar 2021 22:19:27 +0000 (15:19 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 28 Mar 2021 04:41:09 +0000 (21:41 -0700)
commit073a6f8311a4304d420e87734ef8f1c412e2d062
tree5fc6edd804a8747875170c6ba1b0142ecbbfecec
parent150d6a31d5d193448a4fa4d26512c80b328b9481
Input: elants_i2c - fix division by zero if firmware reports zero phys size

Touchscreen firmware of ASUS Transformer TF700T reports zeros for the phys
size. Hence check whether the size is zero and don't set the resolution in
this case.

Reported-by: Jasper Korten <jja2000@gmail.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20210302100824.3423-1-digetx@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/elants_i2c.c