[PATCH] fix: crypto/tegra: tegra_se_host1x_submit: timeout path leaks host1x_job reference

From: Akhil R

Date: Fri Jun 26 2026 - 11:11:41 EST


On Fri, 26 Jun 2026 20:14:53 +0800, WenTao Liang wrote:
> When host1x_syncpt_wait returns a timeout error, the function returns ret
> directly without calling host1x_job_put(job). The job reference acquired
> by host1x_job_alloc is properly released on all other error paths via the
> job_put label but is missing on the timeout path.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: 0880bb3b00c8 ("crypto: tegra - Add Tegra Security Engine driver")
> Signed-off-by: WenTao Liang <vulab@xxxxxxxxxxx>

This fix is already applied in linux-next as commit 6ea0ce3a19f9
("crypto: tegra - fix refcount leak in tegra_se_host1x_submit()").

https://lore.kernel.org/linux-tegra/aip3_Hqk876NZFHf@xxxxxxxxxxxxxxxxxxx/T/#t

Regards,
Akhil