Re: [PATCH] media: ti: vpe: fix double free after video device registration failure
From: Nicolas Dufresne
Date: Mon Nov 30 2026 - 13:31:09 EST
On Tue, 03 Nov 2026 18:40:34 +0100, Thomas Fourier wrote:
> vpe_fw_cb() is called asynchronously by vpe_probe().
> If video_register_device() fails there, all the cleanup functions are
> called. The driver stays bound, so vpe_remove() later does all of this
> again, freeing dev->m2m_dev a second time.
>
> Leave the cleanup to vpe_remove().
>
> [...]
Applied, thanks!
[1/1] media: ti: vpe: fix double free after video device registration failure
commit: 9519a16d412beadc5575fad2566bc0d8ca024027
Best regards,
--
Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>