aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-add.c
diff options
context:
space:
mode:
authorRanjani Sridharan <[email protected]>2020-07-28 16:10:11 -0700
committerTakashi Iwai <[email protected]>2020-07-29 09:54:49 +0200
commit7fcd9bb5acd01250bcae1ecc0cb8b8d4bb5b7e63 (patch)
treea8f3849dafc67c77ff2652fc0655d57164e80a13 /lib/mpi/mpi-add.c
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 <[email protected]> Signed-off-by: Ranjani Sridharan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions