Re: [PATCH] iio: adc: ade9000: move mutex init before IRQ registration
From: Jonathan Cameron
Date: Sat Feb 28 2026 - 06:52:44 EST
On Sat, 28 Feb 2026 13:05:18 +0200
Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:
> On Fri, Feb 27, 2026 at 03:33:30PM +0200, Antoniu Miclaus wrote:
> > Move devm_mutex_init() before ade9000_request_irq() calls so that
> > st->lock is initialized before any handler that depends on it can run.
>
> Sounds good. The technique to reproduce this (in case you have a HWr
> to make sure probe runs) the kernel configuration should have
> CONFIG_DEBUG_SHIRQ=y (and in some cases a tweak in the code to flag
> IRQ as shared).
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
>
Applied as a fix, so I added a Fixes tag and +CC stable.
Whilst hard to hit it is is always good to ensure we are safe against
spurious interrupts.
thanks,
Jonathan