Re: [PATCH] spi: axiado: fix use-after-free on probe failure

From: Johan Hovold

Date: Wed Mar 18 2026 - 03:55:37 EST


On Tue, Mar 17, 2026 at 05:35:55PM +0000, Mark Brown wrote:
> On Thu, Mar 12, 2026 at 11:28:11AM +0100, Johan Hovold wrote:
> > The SPI controller allocation is device managed and must not be released
> > before returning on probe failures (e.g. probe deferral) to avoid
> > use-after-free.
>
> Felix Gu already sent a version of this which was applied, please check
> if there's anything remaining to be fixed here.

That diff looks correct.

Johan

Attachment: signature.asc
Description: PGP signature