Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Input: synaptics - avoid using uninitialized variable when probing
commit f39f868 upstream. synaptics_detect() does not check whether sending commands to the device succeeds and instead relies on getting unique data from the device. Let's make sure we seed entire buffer with zeroes to make sure we will not use garbage on stack that just happen to be 0x47. Reported-by: [email protected] Reviewed-by: Benjamin Tissoires <[email protected]> Reviewed-by: Peter Hutterer <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information