aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorYaxiong Tian <[email protected]>2023-11-22 08:02:43 +0000
committerMika Westerberg <[email protected]>2023-11-27 10:45:47 +0000
commitac43c9122e4287bbdbe91e980fc2528acb72cc1e (patch)
treed45f106dc4f564c46746379622739b7c03a9282b /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentLinux 6.7-rc3 (diff)
downloadkernel-ac43c9122e4287bbdbe91e980fc2528acb72cc1e.tar.gz
kernel-ac43c9122e4287bbdbe91e980fc2528acb72cc1e.zip
thunderbolt: Fix memory leak in margining_port_remove()
The dentry returned by debugfs_lookup() needs to be released by calling dput() which is missing in margining_port_remove(). Fix this by calling debugfs_lookup_and_remove() that combines both and avoids the memory leak. Fixes: d0f1e0c2a699 ("thunderbolt: Add support for receiver lane margining") Cc: [email protected] Signed-off-by: Yaxiong Tian <[email protected]> Signed-off-by: Mika Westerberg <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions