]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: qcom: rpmh-rsc: fix the loop index check in get_req_from_tcs
authorRaju P.L.S.S.S.N <rplsssn@codeaurora.org>
Thu, 19 Jul 2018 07:13:02 +0000 (12:43 +0530)
committerAndy Gross <andy.gross@linaro.org>
Sat, 21 Jul 2018 18:43:38 +0000 (13:43 -0500)
commit749e7d30e8858a374efc981275867ef619b8f452
tree5a099bf043a83d54456737477c64157bf4767a04
parent8d81ac9de407258f137d06b8975afe140127d194
drivers: qcom: rpmh-rsc: fix the loop index check in get_req_from_tcs

get_req_from_tcs introduced in patch[1] returns tcs_request from
tcs_group. The size of tcs (of type - tcs_group) array in rsc_drv is
TCS_TYPE_NR. So the loop index needs to be iterated up to TCS_TYPE_NR only.

[1] https://patchwork.kernel.org/patch/10477547/

Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/rpmh-rsc.c