[RESEND PATCH v1] spi: uniphier: Fix completion initialization order before devm_request_irq()
Mark Brown
broonie at kernel.org
Mon Jun 15 04:45:51 PDT 2026
On Mon, Jun 15, 2026 at 11:34:15AM +0900, Kunihiko Hayashi wrote:
> The driver calls devm_request_irq() before initializing the completion
> used by the interrupt handler. Because the interrupt may occur immediately
> after devm_request_irq(), the handler may execute before init_completion().
>
> This may result in calling complete() on an uninitialized completion,
> causing undefined behavior. This has been observed with KASAN.
>
> Fix this by initializing the completion before registering the IRQ.
I thought you were going to rebase this, why resend the same version?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260615/8e94bd72/attachment.sig>
More information about the linux-arm-kernel
mailing list