]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Add missing sanity checks in PM prepare/complete callbacks
authorTakashi Iwai <tiwai@suse.de>
Mon, 29 Mar 2021 11:30:59 +0000 (13:30 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Mar 2021 11:16:42 +0000 (13:16 +0200)
commit8ef1456fa0c8db986471d9b3a0030a510874ee88
tree862eb907011a4713bb40d130a156d33fd0db8196
parentef883ab5dcf4c0eb6d3a37b044344384e663977f
ALSA: hda: Add missing sanity checks in PM prepare/complete callbacks

The recently added PM prepare and complete callbacks don't have the
sanity check whether the card instance has been properly initialized,
which may potentially lead to Oops.

This patch adds the azx_is_pm_ready() call in each place
appropriately like other PM callbacks.

Fixes: ff66ac6d49a7 ("ALSA: hda: Separate runtime and system suspend")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210329113059.25035-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c