linux-stable/drivers/thunderbolt
Yaxiong Tian 3339028dd0 thunderbolt: Fix memory leak in margining_port_remove()
commit ac43c9122e upstream.

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: d0f1e0c2a6 ("thunderbolt: Add support for receiver lane margining")
Cc: stable@vger.kernel.org
Signed-off-by: Yaxiong Tian <tianyaxiong@kylinos.cn>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-01 12:39:08 +00:00
..
Kconfig
Makefile
acpi.c
cap.c
ctl.c
ctl.h
debugfs.c thunderbolt: Fix memory leak in margining_port_remove() 2024-01-01 12:39:08 +00:00
dma_port.c
dma_port.h
dma_test.c
domain.c
eeprom.c
icm.c thunderbolt: Workaround an IOMMU fault on certain systems with Intel Maple Ridge 2023-10-19 23:08:56 +02:00
lc.c
nhi.c thunderbolt: Add Intel Barlow Ridge PCI ID 2023-08-23 17:52:24 +02:00
nhi.h thunderbolt: Limit Intel Barlow Ridge USB3 bandwidth 2023-08-23 17:52:24 +02:00
nhi_ops.c
nhi_regs.h
nvm.c
path.c
property.c
quirks.c thunderbolt: Apply USB 3.x bandwidth quirk only in software connection manager 2023-11-28 17:07:01 +00:00
retimer.c thunderbolt: Read retimer NVM authentication status prior tb_retimer_set_inbound_sbtx() 2023-08-23 17:52:24 +02:00
sb_regs.h
switch.c thunderbolt: Check that lane 1 is in CL0 before enabling lane bonding 2023-10-19 23:08:56 +02:00
tb.c
tb.h
tb_msgs.h
tb_regs.h
test.c
tmu.c thunderbolt: Fix a backport error for display flickering issue 2023-09-02 09:16:20 +02:00
tunnel.c
tunnel.h
usb4.c
usb4_port.c
xdomain.c thunderbolt: Restart XDomain discovery handshake after failure 2023-10-19 23:08:56 +02:00