Skip to content

Commit 3f2e4c1

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: SDCA: Fix off by one error in IRQ bound check
Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/r/202507150415.M1tCgi3p-lkp@intel.com/ Fixes: b126394 ("ASoC: SDCA: Generic interrupt support") Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20250715151723.2964336-2-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent bfd2912 commit 3f2e4c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sdca/sdca_interrupts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ int sdca_irq_request(struct device *dev, struct sdca_interrupt_info *info,
262262
{
263263
int ret;
264264

265-
if (sdca_irq < 0 || sdca_irq > SDCA_MAX_INTERRUPTS) {
265+
if (sdca_irq < 0 || sdca_irq >= SDCA_MAX_INTERRUPTS) {
266266
dev_err(dev, "bad irq request: %d\n", sdca_irq);
267267
return -EINVAL;
268268
}

0 commit comments

Comments
 (0)