]> 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>
Sat, 6 Dec 2025 21:12:38 +0000 (06:12 +0900)
commit6b572e5154af08ee13f8d2673e86f83bc5ff86cd
treed5c119a0f87d0c26d282968d94bb1dc5f4f82819
parent47f18c557ae7172548835774f48a20ec6cc4017e
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