From 49f26f32fc153fb71bc1585b1afc30af29f32ed1 Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 16 Sep 2022 02:26:35 +0000 Subject: [PATCH] drm/amd/display: fix memory leak when using debugfs_lookup() From Greg Kroah-Hartman 58acd2ebae034db3bacf38708f508fbd12ae2e54 in linux 5.15.y/5.15.68 cbfac7fa491651c57926c99edeb7495c6c1aeac2 in mainline linux --- sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c index 5c9f5214bc4..6d694cea242 100644 --- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c +++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c @@ -3007,7 +3007,7 @@ void crtc_debugfs_init(struct drm_crtc *crtc) &crc_win_y_end_fops); debugfs_create_file_unsafe("crc_win_update", 0644, dir, crtc, &crc_win_update_fops); - + dput(dir); } #endif /* -- 2.20.1