linux-uconsole/drivers/input/mouse
Hui Wang 8da63aa46e Input: alps - fix a mismatch between a condition check and its comment
commit 771a081e44 upstream.

In the function alps_is_cs19_trackpoint(), we check if the param[1] is
in the 0x20~0x2f range, but the code we wrote for this checking is not
correct:
(param[1] & 0x20) does not mean param[1] is in the range of 0x20~0x2f,
it also means the param[1] is in the range of 0x30~0x3f, 0x60~0x6f...

Now fix it with a new condition checking ((param[1] & 0xf0) == 0x20).

Fixes: 7e4935ccc3 ("Input: alps - don't handle ALPS cs19 trackpoint-only device")
Cc: stable@vger.kernel.org
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-26 09:14:22 +02:00
..
alps.c Input: alps - fix a mismatch between a condition check and its comment 2019-07-26 09:14:22 +02:00
alps.h Input: ALPS - fix multi-touch decoding on SS4 plus touchpads 2018-01-12 00:41:36 -08:00
amimouse.c
appletouch.c Input: mark expected switch fall-throughs 2018-08-08 11:23:27 -07:00
atarimouse.c
bcm5974.c
byd.c Input: byd - convert to using timer_setup() 2017-10-23 16:31:43 -07:00
byd.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cyapa.c Input: cyapa - remove redundant assignment to 'pwr_cmd' 2018-01-18 11:39:49 -08:00
cyapa.h
cyapa_gen3.c Input: cyapa - remove duplicated macro definitions 2018-01-08 17:42:00 -08:00
cyapa_gen5.c Input: mark expected switch fall-throughs 2018-08-08 11:23:27 -07:00
cyapa_gen6.c Input: mark expected switch fall-throughs 2018-08-08 11:23:27 -07:00
cypress_ps2.c
cypress_ps2.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
elan_i2c.h Input: elan_i2c_smbus - fix more potential stack buffer overflows 2018-06-21 17:20:41 -07:00
elan_i2c_core.c Input: elan_i2c - add hardware ID for multiple Lenovo laptops 2019-04-27 09:36:36 +02:00
elan_i2c_i2c.c Input: elan_i2c - extend Flash-Write delay 2017-09-22 10:07:38 -07:00
elan_i2c_smbus.c Input: elan_i2c_smbus - cast sizeof to int for comparison 2018-08-01 16:05:55 -07:00
elantech.c Input: elantech - enable middle button support on 2 ThinkPads 2019-07-14 08:11:04 +02:00
elantech.h Input: elantech - detect new ICs and setup Host Notify for them 2018-05-23 16:49:22 -07:00
focaltech.c
focaltech.h
gpio_mouse.c Input: gpio_mouse - add device tree probing 2017-10-19 17:08:46 -07:00
hgpk.c
hgpk.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
inport.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
Kconfig docs: Fix some broken references 2018-06-15 18:10:01 -03:00
lifebook.c Input: lifebook - clean up code 2018-02-02 16:49:17 -08:00
lifebook.h
logibm.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
logips2pp.c Input: psmouse - move sliced command implementation to libps2 2018-02-02 16:50:24 -08:00
logips2pp.h
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
maplemouse.c
navpoint.c
pc110pad.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
psmouse-base.c Input: psmouse - fix button reporting for basic protocols 2018-06-26 16:21:45 -07:00
psmouse-smbus.c Input: psmouse-smbus - allow to control psmouse_deactivate 2018-05-23 16:49:22 -07:00
psmouse.h Input: psmouse-smbus - allow to control psmouse_deactivate 2018-05-23 16:49:22 -07:00
pxa930_trkball.c
rpcmouse.c
sentelic.c Input: psmouse - create helper for reporting standard buttons/motion 2018-02-02 16:48:56 -08:00
sentelic.h
sermouse.c Input: mark expected switch fall-throughs 2018-08-08 11:23:27 -07:00
synaptics.c Input: synaptics - whitelist Lenovo T580 SMBus intertouch 2019-07-26 09:14:21 +02:00
synaptics.h
synaptics_i2c.c
synaptics_usb.c Input: synaptics_usb - do not rely on input_dev->users 2018-03-17 11:05:18 -07:00
touchkit_ps2.c
touchkit_ps2.h
trackpoint.c Input: trackpoint - combine calls to ps2_command() 2018-02-02 16:51:32 -08:00
trackpoint.h Input: trackpoint - only expose supported controls for Elan, ALPS and NXP 2018-01-22 16:24:36 -08:00
vmmouse.c x86/virt: Add enum for hypervisors to replace x86_hyper 2017-11-10 10:03:12 +01:00
vmmouse.h
vsxxxaa.c