]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics - clear device info before filling in
authorEric Biggers <ebiggers@google.com>
Tue, 30 May 2017 02:57:19 +0000 (19:57 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 30 May 2017 03:00:10 +0000 (20:00 -0700)
commit042c8e1f43d11b5b47b4e0802c31b581e1d1e318
tree6db195a95cf7c6373d076dbbf0afbba30d51d668
parentafc8fce74492e0fb8e1ee79b7db0520131dcd325
Input: synaptics - clear device info before filling in

synaptics_query_hardware() was being passed a 'struct synaptics_device_info'
in uninitialized stack memory, then not always initializing all fields.
This caused garbage to show up in certain fields, making the touchpad
unusable.

Fix by zeroing the device info, so all fields default to 0.

Fixes: a13c50b2317a ("Input: synaptics - split device info into a separate structure")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/synaptics.c