summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorQinguang Xu <guang.cy2023@gmail.com>2026-10-20 21:39:06 +0800
committerMark Brown <broonie@kernel.org>2026-10-21 17:53:15 +0100
commit1ea2927c1bc3c66d2ff69f131268e6be4d38a87c (patch)
treec6a6912f113f63bddedb7f7032cb6b8caf637f06 /scripts
parent2dee91ee94eec85d09c13c7ca83e3005906d3732 (diff)
regmap: irq: fix incorrect index calculation for read_sub_irq_data()
While working on a PMIC driver that utilizes num_main_regs > 1, this issue was noticed. Currently, no in-tree driver sets `num_main_regs > 1`, so this bug has not been triggered in practice. Pass the global index calculated with `i` instead of the local bit offset `b` to read_sub_irq_data(). Fix an off-by-one error in the index bounds check. This patch has been compile-tested only. Signed-off-by: Qinguang Xu <guang.cy2023@gmail.com> Link: https://patch.msgid.link/20261020-debug-v1-1-44e0491ede30@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions