]> www.infradead.org Git - users/jedix/linux-maple.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)
committerRob Clark <robin.clark@oss.qualcomm.com>
Mon, 9 Jun 2025 18:27:28 +0000 (11:27 -0700)
commitf681c2aa8676a890eacc84044717ab0fd26e058f
tree9a1f7718d3639a3e6ea99a16842c981cfe7d1776
parent5d319f75ccf7f0927425a7545aa1a22b3eedc189
drm/msm: Fix another leak in the submit error path

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>
drivers/gpu/drm/msm/msm_gem_submit.c