summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-06-27 09:25:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-17 12:39:29 +0300
commitf329f46764b116fa3809113d1c14fc49bde27519 (patch)
tree29ab7053de38eb1c9595507c8273406065ad968f /mm
parent11c6be539e1a40fb508b17810e7336d5cbc7b579 (diff)
downloadlinux-f329f46764b116fa3809113d1c14fc49bde27519.tar.xz
ALSA: hda - Handle pm failure during hotplug
commit aaa23f86001bdb82d2f937c5c7bce0a1e11a6c5b upstream. Obtaining the runtime pm wakeref can fail, especially in a hotplug scenario where i915.ko has been unloaded. If we do not catch the failure, we end up with an unbalanced pm. v2 additions by tiwai: hdmi_present_sense() checks the return value and handle only a negative error case and bails out only if it's really still suspended. Also, snd_hda_power_down() is called at the error path so that the refcount is balanced. Along with it, the spec->pcm_lock is taken outside hdmi_present_sense() in the caller side, so that it won't cause deadlock at reentrace via runtime resume. v3 fix by tiwai: Missing linux/pm_runtime.h is included. References: 222bde03881c ("ALSA: hda - Fix mutex deadlock at HDMI/DP hotplug") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions