]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: x86: Fix sleep-in-atomic via i915 notification
authorTakashi Iwai <tiwai@suse.de>
Tue, 31 Jan 2017 15:26:10 +0000 (16:26 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 16:34:03 +0000 (17:34 +0100)
commit10ac6647f1d9243c2f72e742aecb341ac45abf72
tree0564d35d0debaf48e6bae5a01ea189a1a64a3b3c
parent86497a928c9a86ce9f601050488995e396f8cdf7
ALSA: x86: Fix sleep-in-atomic via i915 notification

i915 notification is executed in a spinlock, thus it must not sleep;
i.e. we can't use kmalloc with GFP_KERNEL or such.

For making it working properly, move the notification handler in a
work, and handle it gracefully.  We have already such a work, and it
was used just at the start.  This can be re-used in a more generic
hotplug handling.

Also, the patch adds the proper call of cancel_work_sync() to the
destructor.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c