Re: [PATCH] media: atomisp: Fix potential firmware leak after partial loading

From: Andy Shevchenko

Date: Mon Nov 23 2026 - 03:18:38 EST


On Sat, Nov 21, 2026 at 01:35:22AM +0800, Guangshuo Li wrote:
> A failed firmware load can leave the minibuffer table and successfully
> loaded blob parameters allocated. Probe skips firmware unload, and a
> later retry overwrites the pointers to those allocations.
>
> Unload partial firmware before freeing the IRQ. Clear all_binaries after
> freeing it so cleanup after a later failed load cannot free the old
> allocation again.
>
> This issue was found by our static analysis tool under development.

Please, test on a real HW.

--
With Best Regards,
Andy Shevchenko