diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-08-07 12:20:02 +0100 |
---|---|---|
committer | Casey Connolly <casey.connolly@linaro.org> | 2025-08-13 15:18:49 +0200 |
commit | d9fbc1d70bc9d5e7665c9fc1ed71d25e04faba54 (patch) | |
tree | c09d47867f2b50fa76e9143e22133923fc247c07 /drivers/button/button-qcom-pmic.c | |
parent | be12b6e158a06580437f2e4756eb6021cf0cbfbe (diff) |
pinctrl: qcom: sdm845: Limit check off by 1
The driver specifies 154 pins so should have a maximum selector of 153
to ensure that the index into the array special_pins_names does not
overflow.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Link: https://lore.kernel.org/r/20250807-pinctrl_qcom-v1-2-42fac6707fd5@linaro.org
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
Diffstat (limited to 'drivers/button/button-qcom-pmic.c')
0 files changed, 0 insertions, 0 deletions