Input: iqs5xx - initialize an uninitialized variable
authorJeff LaBundy <jeff@labundy.com>
Mon, 25 Jan 2021 18:13:14 +0000 (10:13 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 28 Jan 2021 17:48:17 +0000 (09:48 -0800)
commit7a6a53b2b1a3e68b69cd75a74783f4d8fd5b6fb5
tree2ba9456da389251f731654cec94d4a54a253c232
parent3bdffa8ffb45c4f217d31a9250e90432ac31b35e
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 <lkp@intel.com>
Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/1611592500-32209-1-git-send-email-jeff@labundy.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/iqs5xx.c