From: Eric Biggers <hidden> Date: 2017-05-29 05:30:13
From: Eric Biggers <redacted>
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: 6c53694fb222 ("Input: synaptics - split device info into a separate structure")
Signed-off-by: Eric Biggers <redacted>
---
drivers/input/mouse/synaptics.c | 2 ++
1 file changed, 2 insertions(+)
On Sun, May 28, 2017 at 10:27:07PM -0700, Eric Biggers wrote:
From: Eric Biggers <redacted>
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: 6c53694fb222 ("Input: synaptics - split device info into a separate structure")
Signed-off-by: Eric Biggers <redacted>