diff options
author | Maxime Ripard <[email protected]> | 2022-10-18 15:52:58 +0200 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2022-10-27 17:08:41 -0700 |
commit | 774560cf28fe115f106b6176c54ec641491136ac (patch) | |
tree | be09d005714a672c461415ede4113b015d3e86d9 /scripts/gdb/linux/proc.py | |
parent | 2079d029387adfc0cc123f01a6fcf9eb6540ee4d (diff) |
clk: Initialize max_rate in struct clk_rate_request
Since commit b46fd8dbe8ad ("clk: Zero the clk_rate_request structure"),
the clk_core_init_rate_req() function clears the struct clk_rate_request
passed as argument.
However, the default value for max_rate isn't 0 but ULONG_MAX, and we
end up creating a clk_rate_request instance where the maximum rate is 0.
Let's initialize max_rate to ULONG_MAX properly.
Fixes: b46fd8dbe8ad ("clk: Zero the clk_rate_request structure")
Signed-off-by: Maxime Ripard <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions