linux/drivers/crypto/tegra
Wentao Liang 6ea0ce3a19 crypto: tegra - fix refcount leak in tegra_se_host1x_submit()
The timeout error path in tegra_se_host1x_submit() returns without
calling host1x_job_put(), while all other paths (success, submit
error, pin error) properly release the job reference through the
job_put label.  Since host1x_job_alloc() initializes the reference
count and host1x_job_put() is required to drop it, omitting it on
timeout causes a permanent refcount leak.

Fix this by redirecting the timeout return to the existing job_put
label, ensuring the job reference and any associated syncpt
references are consistently released.

Cc: stable@vger.kernel.org
Fixes: 0880bb3b00 ("crypto: tegra - Add Tegra Security Engine driver")
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Akhil R <akhilrajeev@nvidia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2026-06-12 09:56:45 +08:00
..
Makefile
tegra-se-aes.c crypto: tegra - Return ENOMEM when input buffer allocation fails for ccm 2026-05-29 13:55:57 +08:00
tegra-se-hash.c This update includes the following changes: 2026-04-15 15:22:26 -07:00
tegra-se-key.c crypto: tegra - Reserve keyslots to allocate dynamically 2025-03-08 16:23:22 +08:00
tegra-se-main.c crypto: tegra - fix refcount leak in tegra_se_host1x_submit() 2026-06-12 09:56:45 +08:00
tegra-se.h crypto: tegra - Reserve keyslots to allocate dynamically 2025-03-08 16:23:22 +08:00