summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorCong Nguyen <congnt264@gmail.com>2026-07-27 17:49:27 +0700
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-09-22 12:58:42 +0200
commit07643be7b1eff94f7a49e142c1e92a1029d3db21 (patch)
tree3e8b9f24657211f11d666cac97a503266dda8cd0 /tools/perf/scripts/python/bin
parentaedd77ea8168f00687c1248cdf115071e869cf93 (diff)
staging: media: imx: csc-scaler: fix ipu_image_convert_run leak on queue error
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. Free the run object in the error path. There is no risk of a double free: the completion callback only runs after the object was successfully queued, which is mutually exclusive with reaching the error path. It is also safe for the earlier "goto err" on allocation failure, since run is NULL there and kfree(NULL) is a no-op. Fixes: a8ef0488cc59 ("media: imx: add csc/scaler mem2mem device") Cc: stable@kernel.org Signed-off-by: Cong Nguyen <congnt264@gmail.com> Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions