]> 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 14:03:15 +0000 (16:03 +0200)
commitc40ad1c04d306f7fde26337fdcf8a5979657d93f
treef788002210a103cdbf41cce937d7b705559617bd
parentfe2695b2f63bd77e0e03bc0fc779164115bb4699
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