]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: hideep - fix the uninitialized use in hideep_nvm_unlock()
authorYizhuo Zhai <yzhai003@ucr.edu>
Sun, 20 Jun 2021 05:26:50 +0000 (22:26 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 20 Jun 2021 05:36:28 +0000 (22:36 -0700)
commitcac7100d4c51c04979dacdfe6c9a5e400d3f0a27
tree24b0d640306670ed4f07601460797ca67a6c3797
parenteacacdb5fc961a7e3aec36502e4cbda8b6d5b3a8
Input: hideep - fix the uninitialized use in hideep_nvm_unlock()

Inside function hideep_nvm_unlock(), variable "unmask_code" could
be uninitialized if hideep_pgm_r_reg() returns error, however, it
is used in the later if statement after an "and" operation, which
is potentially unsafe.

Signed-off-by: Yizhuo <yzhai003@ucr.edu>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/hideep.c