aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
diff options
context:
space:
mode:
authorYizhuo <[email protected]>2019-10-03 10:58:13 -0700
committerMark Brown <[email protected]>2019-10-04 18:45:43 +0100
commit472b39c3d1bba0616eb0e9a8fa3ad0f56927c7d7 (patch)
treee144268c2dd33bbb0b783e27f9ca46b1aac03916 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace
parent87fd0db6d7df1cf4cc6e9b09e2155d1f324bf836 (diff)
regulator: max8907: Fix the usage of uninitialized variable in max8907_regulator_probe()
Inside function max8907_regulator_probe(), variable val could be uninitialized if regmap_read() fails. However, val is used later in the if statement to decide the content written to "pmic", which is potentially unsafe. Signed-off-by: Yizhuo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions