diff options
| author | Gabor Juhos <j4g8y7@gmail.com> | 2026-01-22 18:20:12 +0100 |
|---|---|---|
| committer | Ulf Hansson <ulf.hansson@linaro.org> | 2026-01-27 15:13:24 +0100 |
| commit | 8aa6f7697f5981d336cac7af6ddd182a03c6da01 (patch) | |
| tree | 6e2bb4d6b25258b2357e576ee3d6e25fd536ddb1 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | 861d21c43c98478eef70e68e31d4ff86400c6ef7 (diff) | |
pmdomain: qcom: rpmpd: fix off-by-one error in clamping to the highest state
As it is indicated by the comment, the rpmpd_aggregate_corner() function
tries to clamp the state to the highest corner/level supported by the
given power domain, however the calculation of the highest state contains
an off-by-one error.
The 'max_state' member of the 'rpmpd' structure indicates the highest
corner/level, and as such it does not needs to be decremented.
Change the code to use the 'max_state' value directly to avoid the error.
Fixes: 98c8b3efacae ("soc: qcom: rpmpd: Add sync_state")
Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
