linux/drivers/staging/greybus
Greg Kroah-Hartman d517cdeb90 staging: greybus: audio_helper: remove unused and wrong debugfs usage
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-09-09 09:53:26 +02:00
..
Documentation
tools staging: greybus: tools: fix spelling 2022-04-26 11:30:06 +02:00
arche_platform.h
arche-apb-ctrl.c staging: greybus: correct typo in comment 2022-04-13 08:49:48 +02:00
arche-platform.c staging: greybus: correct typo in comment 2022-05-05 23:19:14 +02:00
audio_apbridgea.c
audio_apbridgea.h
audio_codec.c Staging driver updates for 5.19-rc1 2022-06-03 10:44:43 -07:00
audio_codec.h staging: greybus: audio: Resolve compilation errors for GB codec module 2020-07-29 16:40:09 +02:00
audio_gb.c
audio_helper.c staging: greybus: audio_helper: remove unused and wrong debugfs usage 2022-09-09 09:53:26 +02:00
audio_helper.h staging: greybus: audio: Add helper APIs for dynamic audio modules 2020-07-29 16:40:09 +02:00
audio_manager_module.c staging: greybus: auto_manager: use default_groups in kobj_type 2021-12-30 11:54:26 +01:00
audio_manager_private.h
audio_manager_sysfs.c staging: greybus: minor code style fix 2021-02-13 22:37:50 +01:00
audio_manager.c
audio_manager.h
audio_module.c staging/greybus: eliminate use of NAME_SIZE for strings 2021-03-10 09:25:33 +01:00
audio_topology.c staging: greybus: audio: Check null pointer 2022-01-06 14:46:11 +01:00
authentication.c
bootrom.c
camera.c staging: greybus: camera: Switch to memdup_user_nul() 2021-04-02 14:56:38 +02:00
firmware.h
fw-core.c
fw-download.c
fw-management.c staging: greybus: Fix indentation in fw-management.c 2022-06-06 07:56:25 +02:00
gb-camera.h
gbphy.c bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
gbphy.h staging: greybus: Add identifier name to function definition argument 2020-08-18 16:07:17 +02:00
gpio.c staging: greybus: gpio: Use generic_handle_irq_safe(). 2022-03-02 22:28:51 +01:00
greybus_authentication.h
greybus_firmware.h
hid.c staging: greybus: Fixed a misspelling in hid.c 2021-02-13 22:37:51 +01:00
i2c.c
Kconfig staging: greybus: audio: Enable GB codec, audio module compilation. 2020-07-29 16:40:26 +02:00
light.c staging: greybus: light: Use kzalloc for allocating only one thing 2021-01-05 15:26:43 +01:00
log.c
loopback.c staging: greybus: loopback: fix a spelling error. 2022-06-07 13:04:42 +02:00
Makefile staging: greybus: audio: Enable GB codec, audio module compilation. 2020-07-29 16:40:26 +02:00
power_supply.c staging: greybus: Switch from strlcpy to strscpy 2021-02-04 17:16:06 +01:00
pwm.c staging: greybus: pwm: Drop assignment to struct pwm_chip::base 2022-04-12 15:49:20 +02:00
raw.c
sdio.c staging: greybus: Remove redundant 'flush_workqueue()' calls 2022-02-15 17:05:56 +01:00
spi.c
spilib.c staging: greybus: spi: add blank line after variable declaration 2021-05-20 11:40:36 +02:00
spilib.h
TODO staging: greybus: Add TODO item about modernizing the pwm code 2020-12-09 15:49:04 +01:00
uart.c staging: greybus: uart: fix tty use after free 2021-09-14 09:18:18 +02:00
usb.c
vibrator.c