Input: iqs5xx - initialize an uninitialized variable
Subsystems (2)
PATCH 1/1 Input: iqs5xx - initialize an uninitialized variable
If execution jumps to the err_kfree label, error_bl is evaluated before it is initialized. Fix this by initializing it to zero.
Fixes 2539da6677b6 ("Input: iqs5xx - preserve bootloader errors")
Reported-by kernel test robot <[email protected]>
Signed-off-by Jeff LaBundy <[email protected]>
--- drivers/input/touchscreen/iqs5xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/touchscreen/iqs5xx.c +1 -1
@@ -852,7 +852,7 @@ static int iqs5xx_fw_file_parse(struct i2c_client *client,static int iqs5xx_fw_file_write (struct i2c_client *client,const char *fw_file) {struct iqs5xx_private *iqs5xx =i2c_get_clientdata (client); -int error, error_bl; +int error, error_bl =0 ;u8 *pmap;if (iqs5xx->bl_status ==IQS5XX_BL_STATUS_NONE )
Signature · 1 line
2.7.4
Quoted 6 lines · Jeff LaBundy
If execution jumps to the
err_kfreelabel,error_blis evaluated before it is initialized. Fix this by initializing it to zero.Fixes 2539da6677b6 ("Input: iqs5xx - preserve bootloader errors")Reported-by kernel test robot <[email protected]>Signed-off-by Jeff LaBundy <[email protected]>
Applied, thank you.
Signature · 1 line
Dmitry