diff options
author | Aidan MacDonald <[email protected]> | 2022-06-20 21:05:57 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-06-22 11:59:52 +0100 |
commit | 3f05010f243be06478a9b11cfce0ce994f5a0890 (patch) | |
tree | 191e259686b9b625eb7775b1a56dd803fa07f7bf /include/linux/fpga/fpga-mgr.h | |
parent | 485037ae9a095491beb7f893c909a76cc4f9d1e7 (diff) |
regmap-irq: Fix offset/index mismatch in read_sub_irq_data()
We need to divide the sub-irq status register offset by register
stride to get an index for the status buffer to avoid an out of
bounds write when the register stride is greater than 1.
Fixes: a2d21848d921 ("regmap: regmap-irq: Add main status register support")
Signed-off-by: Aidan MacDonald <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions