linux/drivers/staging
Greg Kroah-Hartman d0febad83e staging: greybus: audio_helper: remove unused and wrong debugfs usage
commit d517cdeb90 upstream.

In the greybus audio_helper code, the debugfs file for the dapm has the
potential to be removed and memory will be leaked.  There is also the
very real potential for this code to remove ALL debugfs entries from the
system, and it seems like this is what will really happen if this code
ever runs.  This all is very wrong as the greybus audio driver did not
create this debugfs file, the sound core did and controls the lifespan
of it.

So remove all of the debugfs logic from the audio_helper code as there's
no way it could be correct.  If this really is needed, it can come back
with a fixup for the incorrect usage of the debugfs_lookup() call which
is what caused this to be noticed at all.

Cc: Johan Hovold <johan@kernel.org>
Cc: Alex Elder <elder@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: stable <stable@kernel.org>
Link: https://lore.kernel.org/r/20220902143715.320500-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-26 13:25:16 +02:00
..
android staging: ion: Prevent incorrect reference counting behavour 2022-04-27 13:53:57 +02:00
axis-fifo
board
clocking-wizard
comedi comedi: vmk80xx: fix expression for tx buffer size 2022-06-22 14:13:18 +02:00
emxx_udc
fbtft staging: fbtft: fb_st7789v: reset display before initialization 2022-03-28 09:57:08 +02:00
fieldbus staging: fieldbus: Fix the error handling path in anybuss_host_common_probe() 2022-06-14 18:32:31 +02:00
fsl-dpaa2
fwserial
gasket
gdm724x staging: gdm724x: fix use after free in gdm_lte_rx() 2022-03-16 14:16:01 +01:00
goldfish
greybus staging: greybus: audio_helper: remove unused and wrong debugfs usage 2022-10-26 13:25:16 +02:00
gs_fpgaboot
hikey9xx
iio staging:iio:adc:ad7280a: Fix handing of device address bit reversing. 2022-04-08 14:40:24 +02:00
kpc2000
ks7010
media media: cedrus: Set the platform driver data earlier 2022-10-26 13:25:16 +02:00
most
mt7621-dma
mt7621-dts staging: mt7621-dts: fix pinctrl-0 items to be size-1 items on ethernet 2022-04-08 14:40:42 +02:00
mt7621-pci
mt7621-pci-phy
mt7621-pinctrl pinctrl: ralink: Check for null return of devm_kcalloc 2022-07-29 17:19:11 +02:00
netlogic
nvec
octeon
octeon-usb
olpc_dcon
pi433
qlge
ralink-gdma
rtl8188eu
rtl8192e drivers: staging: rtl8192e: Fix deadlock in rtllib_beacons_stop() 2022-06-14 18:32:42 +02:00
rtl8192u staging: rtl8192u: Fix sleep in atomic context bug in dm_fsync_timer_callback 2022-08-21 15:15:57 +02:00
rtl8712 staging: rtl8712: fix use after free bugs 2022-09-08 11:11:37 +02:00
rtl8723bs staging: rtl8723bs: prevent ->Ssid overflow in rtw_wx_set_scan() 2022-05-30 09:33:22 +02:00
rts5208
sm750fb
unisys
vc04_services staging: vchiq_core: handle NULL result of find_service_by_handle 2022-04-13 21:01:01 +02:00
vme
vt6655
vt6656
wfx staging: wfx: fix an error handling in wfx_init_common() 2022-04-13 21:01:01 +02:00
wlan-ng
Kconfig
Makefile