Commit 67d9530
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: c8c68c3 ("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]>1 parent 47ac09b commit 67d9530
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
| 695 | + | |
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
| |||
0 commit comments