]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: qcom: pil-info: Fix shift overflow
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 16 Jul 2020 05:48:17 +0000 (22:48 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 17 Jul 2020 04:30:35 +0000 (21:30 -0700)
commit8d7243a7d5ebb6601ac2508aef69ac70876f3823
treef66e5aed4ec249a1bbeb845230925a4089bf3423
parent56d4f1985cf67297739c4c562cae4fc9d734864b
remoteproc: qcom: pil-info: Fix shift overflow

On platforms with 32-bit phys_addr_t the shift to get the upper word of
the base address of the memory region is invalid. Cast the base to 64
bit to resolv this.

Fixes: 814b35670115 ("remoteproc: qcom: Introduce helper to store pil info in IMEM")
Tested-by: Nathan Chancellor <natechancellor@gmail.com> # build
Reported-by: Lee Jones <lee.jones@linaro.org>
Reported-by: Nathan Chancellor <natechancellor@gmail.com>
Link: https://lore.kernel.org/r/20200716054817.157608-1-bjorn.andersson@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_pil_info.c