diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2022-02-01 13:21:44 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-02-01 15:18:17 +0100 |
commit | 1c7f0e349aa5f8f80b1cac3d4917405332e14cdf (patch) | |
tree | 3b7404cab2ee6ec501dca68f21c04d00d078aca7 /drivers/input/touchscreen | |
parent | 4ee02e20893d2f9e951c7888f2284fa608ddaa35 (diff) | |
download | lwn-1c7f0e349aa5f8f80b1cac3d4917405332e14cdf.tar.gz lwn-1c7f0e349aa5f8f80b1cac3d4917405332e14cdf.zip |
ALSA: hda: Skip codec shutdown in case the codec is not registered
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@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tested-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Fixes: b98444ed597d ("ALSA: hda: Suspend codec at shutdown")
Link: https://lore.kernel.org/r/20220201112144.29411-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/input/touchscreen')
0 files changed, 0 insertions, 0 deletions