diff options
| author | Lee Jones <lee@kernel.org> | 2026-11-03 21:29:15 +0000 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-11-08 15:25:49 +0100 |
| commit | 61d9fb8d416880f4f319b0d6123d6f127bd2a52b (patch) | |
| tree | fc8d738e9207f48b5324f859e3d18fd5641f1ff2 /scripts/Makefile.thinlto | |
| parent | 71a54ad8f05772c7413c8a0783f1da49ef4b4d89 (diff) | |
| download | linux-next-61d9fb8d416880f4f319b0d6123d6f127bd2a52b.tar.gz linux-next-61d9fb8d416880f4f319b0d6123d6f127bd2a52b.zip | |
pinctrl: qcom: Check qcom_scm_io_readl() return value in msm_gpio_irq_set_type()
In msm_gpio_irq_set_type(), when pctrl->intr_target_use_scm is set, the
return value of qcom_scm_io_readl(addr, &val) is ignored. If the SCM read
fails, val remains uninitialised and its stack contents are modified and
written back to the hardware register via qcom_scm_io_writel().
Check the return value of qcom_scm_io_readl() before modifying and writing
back val.
Fixes: 13bec8d49bdf ("pinctrl: qcom: use scm_call to route GPIO irq to Apps")
Closes: https://sashiko.dev/#/bug/linux-a5545ffd-48cc-4856-94cc-4b2dd7968f50
Cc: stable@vger.kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
