Skip to content

Commit 393ea78

Browse files
committed
Merge tag 'regmap-fix-v6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap
Pull regmap fix from Mark Brown: "One fix for an out of bounds access in the interupt code here" * tag 'regmap-fix-v6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap: regmap-irq: Fix out-of-bounds access when allocating config buffers
2 parents 82678ab + 963b54d commit 393ea78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/regmap/regmap-irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ int regmap_add_irq_chip_fwnode(struct fwnode_handle *fwnode,
717717
if (!d->config_buf)
718718
goto err_alloc;
719719

720-
for (i = 0; i < chip->num_config_regs; i++) {
720+
for (i = 0; i < chip->num_config_bases; i++) {
721721
d->config_buf[i] = kcalloc(chip->num_config_regs,
722722
sizeof(**d->config_buf),
723723
GFP_KERNEL);

0 commit comments

Comments
 (0)