summaryrefslogtreecommitdiff
path: root/include/linux/error-injection.h
diff options
context:
space:
mode:
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>2020-07-28 16:10:11 -0700
committerTakashi Iwai <tiwai@suse.de>2020-07-29 09:54:49 +0200
commit7fcd9bb5acd01250bcae1ecc0cb8b8d4bb5b7e63 (patch)
treea8f3849dafc67c77ff2652fc0655d57164e80a13 /include/linux/error-injection.h
parentc2c3657f0aedb8736a0fb7b2b1985adfb86e7802 (diff)
ALSA: hda: fix NULL pointer dereference during suspend
When the ASoC card registration fails and the codec component driver never probes, the codec device is not initialized and therefore memory for codec->wcaps is not allocated. This results in a NULL pointer dereference when the codec driver suspend callback is invoked during system suspend. Fix this by returning without performing any actions during codec suspend/resume if the card was not registered successfully. Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/20200728231011.1454066-1-ranjani.sridharan@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/linux/error-injection.h')
0 files changed, 0 insertions, 0 deletions