android_kernel_samsung_sm8650/drivers/thunderbolt
Yaxiong Tian 3339028dd0 thunderbolt: Fix memory leak in margining_port_remove()
commit ac43c9122e4287bbdbe91e980fc2528acb72cc1e 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
..
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 thunderbolt: dma_test: Use correct value for absent rings when creating paths 2023-06-21 16:00:56 +02:00
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
Kconfig
lc.c
Makefile
nhi_ops.c
nhi_regs.h thunderbolt: Clear registers properly when auto clear isn't in use 2023-05-24 17:32:51 +01:00
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
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 thunderbolt: Add missing UNSET_INBOUND_SBTX for retimer access 2023-03-30 12:49:15 +02:00
switch.c thunderbolt: Check that lane 1 is in CL0 before enabling lane bonding 2023-10-19 23:08:56 +02:00
tb_msgs.h
tb_regs.h
tb.c thunderbolt: Do not touch CL state configuration during discovery 2023-06-21 16:00:56 +02:00
tb.h thunderbolt: Use correct type in tb_port_is_clx_enabled() prototype 2023-05-11 23:03:41 +09:00
test.c
tmu.c thunderbolt: Fix a backport error for display flickering issue 2023-09-02 09:16:20 +02:00
tunnel.c thunderbolt: Use correct function to calculate maximum USB3 link rate 2023-01-24 07:24:37 +01:00
tunnel.h
usb4_port.c
usb4.c thunderbolt: Limit USB3 bandwidth of certain Intel USB4 host routers 2023-04-06 12:10:33 +02:00
xdomain.c thunderbolt: Restart XDomain discovery handshake after failure 2023-10-19 23:08:56 +02:00