Re: [PATCH] i3c: master: adi: initialize the lock before enabling interrupts

From: Alexandre Belloni

Date: Sun Jul 05 2026 - 17:30:14 EST


On Wed, 17 Jun 2026 23:01:38 +0800, Runyu Xiao wrote:
> adi_i3c_master_probe() requests the IRQ and unmasks REG_IRQ_PENDING_CMDR
> before the controller's IBI state, transfer queue list and transfer
> queue lock are initialized. A pending CMDR interrupt can therefore run
> adi_i3c_master_irq() and take master->xferqueue.lock before the dynamic
> lock has been initialized.
>
> This issue was found by our static analysis tool and then manually
> reviewed against the current tree.
>
> [...]

Applied, thanks!

[1/1] i3c: master: adi: initialize the lock before enabling interrupts
https://git.kernel.org/i3c/c/7296f6898b6d

Best regards,

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com