Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c71a120d authored by Yizhuo Zhai's avatar Yizhuo Zhai Committed by Greg Kroah-Hartman
Browse files

Input: hideep - fix the uninitialized use in hideep_nvm_unlock()



[ Upstream commit cac7100d4c51c04979dacdfe6c9a5e400d3f0a27 ]

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: default avatarYizhuo <yzhai003@ucr.edu>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b638d66d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment