aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers
diff options
context:
space:
mode:
authorZhang Zekun <[email protected]>2024-09-26 13:42:11 +0000
committerUlf Hansson <[email protected]>2024-10-02 10:38:53 +0000
commit500580c7ae7bbd38c7641102059fa9308f35d26c (patch)
treecd6a1916ca1c67c75378c5674f0738fcf52170d7 /rust/helpers
parentOPP: fix error code in dev_pm_opp_set_config() (diff)
downloadkernel-500580c7ae7bbd38c7641102059fa9308f35d26c.tar.gz
kernel-500580c7ae7bbd38c7641102059fa9308f35d26c.zip
pmdomain: qcom-cpr: Fix the return of uninitialized variable
The of_property_read_u64() can fail and remain the variable uninitialized, which will then be returned. Initializing the variable "rate" to zero to fix this problem. Fixes: 181c8148556a ("pmdomain: qcom-cpr: Use scope based of_node_put() to simplify code.") Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/linux-pm/[email protected]/T/#m0a62b501b453a6d6e94c52a428a66f65b5422c65 Signed-off-by: Zhang Zekun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions