milos-linux/drivers
Nikhil P. Rao dc416e32ba pds_core: fix debugfs_lookup dentry leak and error handling
debugfs_lookup() returns a dentry with an elevated reference count that
must be released with dput(). The current code discards the returned
dentry without calling dput(), causing a reference leak on every
firmware reset recovery.

Additionally, when CONFIG_DEBUG_FS is disabled, debugfs_lookup()
returns ERR_PTR(-ENODEV), not NULL. The current check passes for error
pointers and would call dput() on an invalid pointer, causing a crash.

Fixes: bc90fbe0c3 ("pds_core: Rework teardown/setup flow to be more common")
Signed-off-by: Nikhil P. Rao <nikhil.rao@amd.com>
Link: https://patch.msgid.link/20260515212907.998028-3-nikhil.rao@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-05-19 19:18:33 -07:00
..
accel
accessibility
acpi
amba
android
ata
atm
auxdisplay
base
bcma
block ublk: fix use-after-free in ublk_cancel_cmd() 2026-05-08 06:44:42 -06:00
bluetooth Bluetooth: hci_qca: Convert timeout from jiffies to ms 2026-05-14 09:58:08 -04:00
bus
cache
cdrom
cdx
char
clk
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl
dax
dca
devfreq
dibs
dio
dma
dma-buf
dpll
edac
eisa
extcon
firewire
firmware
fpga
fsi
fwctl
gnss
gpib
gpio
gpu drm: Set old handle to NULL before prime swap in change_handle 2026-05-08 17:53:59 +10:00
greybus
hid
hsi
hte
hv
hwmon hwmon: (ads7871) Fix endianness bug in 16-bit register reads 2026-05-07 16:30:12 -07:00
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband IB/IPoIB: ndo_set_rx_mode_async conversion 2026-05-15 17:16:33 -07:00
input
interconnect
iommu
ipack
irqchip
leds
macintosh
mailbox
mcb
md
media
memory
memstick
message
mfd
misc
mmc
most
mtd
mux
net pds_core: fix debugfs_lookup dentry leak and error handling 2026-05-19 19:18:33 -07:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
parisc
parport
pci PCI: Initialize temporary device in new_id_store() 2026-05-08 15:50:06 -05:00
pcmcia
peci
perf
phy
pinctrl
platform platform-drivers-x86 for v7.1-2 2026-05-07 08:46:27 -07:00
pmdomain
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
resctrl
reset
rpmsg
rtc
s390
sbus
scsi
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
ufs
uio
usb USB serial device ids for 7.1-rc3 2026-05-08 17:18:43 +02:00
vdpa
vfio
vhost
video
virt
virtio
w1
watchdog
xen
zorro
Kconfig
Makefile