[PATCH] ALSA: hda: Skip codec shutdown in case the codec is not registered

Takashi Iwai tiwai at suse.de
Tue Feb 1 17:02:57 CET 2022


On Tue, 01 Feb 2022 12:21:44 +0100,
Peter Ujfalusi wrote:
> 
> If the codec->registered is not set then it means that pm_runtime is
> not yet enabled and the codec->pcm_list_head has not been initialized.
> 
> The access to the not initialized pcm_list_head will lead a kernel crash
> during shutdown.
> 
> Reported-by: Guennadi Liakhovetski <guennadi.liakhovetski at linux.intel.com>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi at linux.intel.com>
> Tested-by: Guennadi Liakhovetski <guennadi.liakhovetski at linux.intel.com>

Thanks, applied now.


Takashi


More information about the Alsa-devel mailing list