diff options
| author | Marc Zyngier <[email protected]> | 2025-04-13 10:11:42 +0000 |
|---|---|---|
| committer | Viresh Kumar <[email protected]> | 2025-04-16 08:07:44 +0000 |
| commit | 2b8e6b58889c672e1ae3601d9b2b070be4dc2fbc (patch) | |
| tree | a616a6867a71799e8fb01a735316f1b133432e91 /rust/helpers/helpers.c | |
| parent | cpufreq: scpi: Fix null-ptr-deref in scpi_cpufreq_get_rate() (diff) | |
| download | kernel-2b8e6b58889c672e1ae3601d9b2b070be4dc2fbc.tar.gz kernel-2b8e6b58889c672e1ae3601d9b2b070be4dc2fbc.zip | |
cpufreq: cppc: Fix invalid return value in .get() callback
Returning a negative error code in a function with an unsigned
return type is a pretty bad idea. It is probably worse when the
justification for the change is "our static analisys tool found it".
Fixes: cf7de25878a1 ("cppc_cpufreq: Fix possible null pointer dereference")
Signed-off-by: Marc Zyngier <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Viresh Kumar <[email protected]>
Reviewed-by: Lifeng Zheng <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
