linux-stable/drivers/staging/greybus
Greg Kroah-Hartman d835fa49d9 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-21 12:37:55 +02:00
..
Documentation
tools
arche-apb-ctrl.c
arche-platform.c
arche_platform.h
audio_apbridgea.c
audio_apbridgea.h
audio_codec.c
audio_codec.h
audio_gb.c
audio_helper.c staging: greybus: audio_helper: remove unused and wrong debugfs usage 2022-10-21 12:37:55 +02:00
audio_helper.h
audio_manager.c
audio_manager.h
audio_manager_module.c
audio_manager_private.h
audio_manager_sysfs.c
audio_module.c
audio_topology.c
authentication.c
bootrom.c
camera.c
firmware.h
fw-core.c
fw-download.c
fw-management.c
gb-camera.h
gbphy.c
gbphy.h
gpio.c
greybus_authentication.h
greybus_firmware.h
hid.c
i2c.c
Kconfig
light.c
log.c
loopback.c staging: greybus: loopback: fix a spelling error. 2022-06-07 13:04:42 +02:00
Makefile
power_supply.c
pwm.c
raw.c
sdio.c
spi.c
spilib.c
spilib.h
TODO
uart.c
usb.c
vibrator.c