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

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

regulator: pfuze100-regulator: Variable "val" in pfuze100_regulator_probe() could be uninitialized



[ Upstream commit 1252b283141f03c3dffd139292c862cae10e174d ]

In function pfuze100_regulator_probe(), variable "val" could be
initialized if regmap_read() fails. However, "val" is used to
decide the control flow later in the if statement, which is
potentially unsafe.

Signed-off-by: default avatarYizhuo <yzhai003@ucr.edu>
Link: https://lore.kernel.org/r/20190929170957.14775-1-yzhai003@ucr.edu


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 16bacd21
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