Re: [PATCH] staging: media: imx: csc-scaler: fix ipu_image_convert_run leak on queue error

From: Frank . Li

Date: Wed Sep 02 2026 - 16:40:18 EST


From: Frank Li <Frank.Li@xxxxxxx>


On Mon, 27 Jul 2026 17:49:27 +0700, Cong Nguyen wrote:
> device_run() allocates an ipu_image_convert_run object and, on the
> success path, hands it to the IPU image conversion core via
> ipu_image_convert_queue(); the run object is then freed asynchronously
> by the completion callback ipu_ic_pp_complete().
>
> However, if ipu_image_convert_queue() fails, the core never takes
> ownership of the run object and the completion callback is never
> invoked. The "err" label finishes the mem2mem job and reports the
> buffers as errored, but never frees the run object that was just
> allocated, leaking it on every queue failure.
>
> [...]

Applied, thanks!

[1/1] staging: media: imx: csc-scaler: fix ipu_image_convert_run leak on queue error
commit: 70b993467aff501363c7bff3dfc4d76d6a138102

Best regards,
--
Frank Li <Frank.Li@xxxxxxx>