]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/tegra: Add call to put_pid()
authorPrateek Agarwal <praagarwal@nvidia.com>
Fri, 19 Sep 2025 04:25:40 +0000 (13:25 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Dec 2025 10:45:53 +0000 (11:45 +0100)
commit27ea5c2c75c3419a9a019240ca44b9256f628df1
tree76cd54eaa48d4cd10d4b198b073338445585aec5
parentc0ab757b86402299f177087dfc023807a6ca27d0
drm/tegra: Add call to put_pid()

[ Upstream commit 6cbab9f0da72b4dc3c3f9161197aa3b9daa1fa3a ]

Add a call to put_pid() corresponding to get_task_pid().
host1x_memory_context_alloc() does not take ownership of the PID so we
need to free it here to avoid leaking.

Signed-off-by: Prateek Agarwal <praagarwal@nvidia.com>
Fixes: e09db97889ec ("drm/tegra: Support context isolation")
[mperttunen@nvidia.com: reword commit message]
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/20250919-host1x-put-pid-v1-1-19c2163dfa87@nvidia.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/tegra/uapi.c