[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220913140412.529529553@linuxfoundation.org>
Date: Tue, 13 Sep 2022 16:02:38 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Harry Wentland <harry.wentland@....com>,
Leo Li <sunpeng.li@....com>,
Rodrigo Siqueira <Rodrigo.Siqueira@....com>,
Alex Deucher <alexander.deucher@....com>,
Christian König <christian.koenig@....com>,
"Pan, Xinhui" <Xinhui.Pan@....com>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>, Wayne Lin <Wayne.Lin@....com>,
hersen wu <hersenxs.wu@....com>,
Wenjing Liu <wenjing.liu@....com>,
Patrik Jakobsson <patrik.r.jakobsson@...il.com>,
Thelford Williams <tdwilliamsiv@...il.com>,
Fangzhi Zuo <Jerry.Zuo@....com>,
Yongzhi Liu <lyz_cs@....edu.cn>,
Mikita Lipski <mikita.lipski@....com>,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
Bhanuprakash Modem <bhanuprakash.modem@...el.com>,
Sean Paul <seanpaul@...omium.org>,
amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org
Subject: [PATCH 5.19 052/192] drm/amd/display: fix memory leak when using debugfs_lookup()
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
commit cbfac7fa491651c57926c99edeb7495c6c1aeac2 upstream.
When calling debugfs_lookup() the result must have dput() called on it,
otherwise the memory will leak over time. Fix this up by properly
calling dput().
Cc: Harry Wentland <harry.wentland@....com>
Cc: Leo Li <sunpeng.li@....com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@....com>
Cc: Alex Deucher <alexander.deucher@....com>
Cc: "Christian König" <christian.koenig@....com>
Cc: "Pan, Xinhui" <Xinhui.Pan@....com>
Cc: David Airlie <airlied@...ux.ie>
Cc: Daniel Vetter <daniel@...ll.ch>
Cc: Wayne Lin <Wayne.Lin@....com>
Cc: hersen wu <hersenxs.wu@....com>
Cc: Wenjing Liu <wenjing.liu@....com>
Cc: Patrik Jakobsson <patrik.r.jakobsson@...il.com>
Cc: Thelford Williams <tdwilliamsiv@...il.com>
Cc: Fangzhi Zuo <Jerry.Zuo@....com>
Cc: Yongzhi Liu <lyz_cs@....edu.cn>
Cc: Mikita Lipski <mikita.lipski@....com>
Cc: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Cc: Bhanuprakash Modem <bhanuprakash.modem@...el.com>
Cc: Sean Paul <seanpaul@...omium.org>
Cc: amd-gfx@...ts.freedesktop.org
Cc: dri-devel@...ts.freedesktop.org
Cc: stable@...r.kernel.org
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@....com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@....com>
Signed-off-by: Alex Deucher <alexander.deucher@....com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
@@ -3188,7 +3188,7 @@ void crtc_debugfs_init(struct drm_crtc *
&crc_win_y_end_fops);
debugfs_create_file_unsafe("crc_win_update", 0644, dir, crtc,
&crc_win_update_fops);
-
+ dput(dir);
}
#endif
/*
Powered by blists - more mailing lists