diff options
author | Dan Carpenter <[email protected]> | 2024-08-13 15:21:13 +0530 |
---|---|---|
committer | Mario Limonciello <[email protected]> | 2024-08-22 15:42:10 -0500 |
commit | 67d95303c84732c2e1de5730756281f648dbefaf (patch) | |
tree | ccc41cd9d6fe39056360e5c0d2a40ac236b0a9c8 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 47ac09b91befbb6a235ab620c32af719f8208399 (diff) |
cpufreq: amd-pstate: Fix uninitialized variable in amd_pstate_cpu_boost_update()
Smatch complains that "ret" could be uninitialized:
drivers/cpufreq/amd-pstate.c:734 amd_pstate_cpu_boost_update()
error: uninitialized symbol 'ret'.
This seems like it probably is a real issue. Initialize "ret" to zero to
be safe.
Fixes: c8c68c38b56f ("cpufreq: amd-pstate: initialize core precision boost state")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Perry Yuan <[email protected]>
Acked-by: Gautham R. Shenoy <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]/T/
Signed-off-by: Gautham R. Shenoy <[email protected]>
Signed-off-by: Mario Limonciello <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions