Re: [PATCH] spi: meson-spicc: Fix double-put in remove path

From: Felix Gu

Date: Mon Mar 23 2026 - 07:34:27 EST


> Indeed it does:
>
> Reviewed-by: Johan Hovold <johan@xxxxxxxxxx>
>
> > Fixes: 8311ee2164c5 ("spi: meson-spicc: fix memory leak in meson_spicc_remove")
>
> While only root can trigger this it should probably still go stable:
>
> Cc: stable@xxxxxxxxxxxxxxx
>
> > Signed-off-by: Felix Gu <ustc.gu@xxxxxxxxx>
>
> How did you find this one? Are you using some kind of static analysis
> tool or LLM?
>
> Johan
Hi Johan,
Just code review, I have fixed a similar one before.

Best regards,
Felix