diff options
| author | Chris Morgan <[email protected]> | 2022-11-17 22:09:18 -0800 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2022-11-17 22:14:43 -0800 |
| commit | c7f43645de7895a8e90cb267a9b3c46e989d8ca6 (patch) | |
| tree | 1a35cf76e2d6bb0df31848e9d659ff2a6f7a2a1d /tools/perf/scripts/python/flamegraph.py | |
| parent | 5e7a0af793ce7ed528117145f856224deb81b7a7 (diff) | |
Input: hynitron_cstxxx - initialize tmp to 0 to fix uninitialized variable issue
In the very unlikely event the cst3xx_i2c_write() fails inside of the
cst3xx_bootloader_enter() function 5 times in a row, the uninitalized
value of tmp will get compared to CST3XX_BOOTLDR_CHK_VAL. Initialize
the value of tmp to 0 so that in this unlikely event we are comparing
0 instead of an uninitalized variable.
Fixes: 66603243f528 ("Input: add driver for Hynitron cstxxx touchscreens")
Signed-off-by: Chris Morgan <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions