]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/msm: Fix another leak in the submit error path
authorRob Clark <robdclark@chromium.org>
Wed, 14 May 2025 16:33:33 +0000 (09:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 13:59:49 +0000 (15:59 +0200)
commit00b3401f692082ddf6342500d1be25560bba46d4
treeb3f897f994d1810f3d6cf42ba5fb13e320e81332
parent201eba5c9652a900c0b248070263f9acd3735689
drm/msm: Fix another leak in the submit error path

[ Upstream commit f681c2aa8676a890eacc84044717ab0fd26e058f ]

put_unused_fd() doesn't free the installed file, if we've already done
fd_install().  So we need to also free the sync_file.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/653583/
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/msm_gem_submit.c