Chris Morgan c7f43645de 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 <macromorgan@hotmail.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/20221117195921.2291-1-macroalpha82@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2022-11-17 22:14:43 -08:00
..
2020-12-02 22:10:33 -08:00
2020-12-02 22:10:33 -08:00
2020-12-02 22:10:33 -08:00
2022-10-09 22:30:23 -07:00
2022-09-29 16:25:42 -07:00
2022-03-20 22:00:12 -07:00
2020-12-02 22:10:33 -08:00
2021-09-06 23:33:26 -07:00
2021-12-12 21:10:23 -08:00
2022-08-16 12:46:26 +02:00
2020-12-02 22:10:33 -08:00