linux/sound/hda/controllers
Takashi Iwai eb90ae3cca ALSA: hda/intel: Move firmware loading into the probe work
The hda-intel driver uses request_firmware_nowait() for loading its
patch, and tries to continue the probe directly from the fw loader
callback.  This works in principle, but it has a few drawbacks:

- The driver may be released before the firmware callback completes
- Having two ways of async probe makes the code flow unnecessarily
  complex

The former issue is more severe, as it may potentially lead to a UAF,
and there is no explicit way to cancel the pending firmware worker
for now.

This patch changes the firmware loading to be performed rather in the
common probe work without *_nowait().  Then the pending work can be
easily canceled, and the code becomes more straightforward.

A nice bonus is that, by moving into the probe work, the firmware
doesn't need any longer to be cached, hence we can get rid of struct
azx.fw field, and release the firmware immediately after parsing it,
too.

Fixes: 5cb543dba9 ("ALSA: hda - Deferred probing with request_firmware_nowait()")
Link: https://patch.msgid.link/20260415135526.1813126-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2026-04-16 10:33:06 +02:00
..
acpi.c ALSA: hda: Move controller drivers into sound/hda/controllers directory 2025-07-11 09:55:37 +02:00
cix-ipbloq.c ALSA: hda: Remove unnecessary print function dev_err() 2025-12-13 10:32:48 +01:00
intel_trace.h ALSA: hda: Move controller drivers into sound/hda/controllers directory 2025-07-11 09:55:37 +02:00
intel.c ALSA: hda/intel: Move firmware loading into the probe work 2026-04-16 10:33:06 +02:00
intel.h ALSA: hda: Move controller drivers into sound/hda/controllers directory 2025-07-11 09:55:37 +02:00
Kconfig ALSA: hda: add CIX IPBLOQ HDA controller support 2025-12-07 13:13:20 +01:00
Makefile ALSA: hda: add CIX IPBLOQ HDA controller support 2025-12-07 13:13:20 +01:00
tegra.c ALSA: hda/tegra: Clean up runtime PM with guard() 2025-12-23 10:51:58 +01:00