projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
183c003
)
ALSA: x86: Clear the pdata.notify_lpe_audio pointer before teardown
author
Ville Syrjälä
<
[email protected]
>
Thu, 27 Apr 2017 16:02:21 +0000
(19:02 +0300)
committer
Ville Syrjälä
<
[email protected]
>
Wed, 3 May 2017 13:19:07 +0000
(16:19 +0300)
Clear the notify function pointer in the platform data before we tear
down the driver. Otherwise i915 would end up calling a stale function
pointer and possibly explode.
Cc:
[email protected]
Cc: Takashi Iwai <
[email protected]
>
Cc: Pierre-Louis Bossart <
[email protected]
>
Signed-off-by: Ville Syrjälä <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Takashi Iwai <
[email protected]
>
sound/x86/intel_hdmi_audio.c
patch
|
blob
|
history
diff --git
a/sound/x86/intel_hdmi_audio.c
b/sound/x86/intel_hdmi_audio.c
index bfac6f21ae5e183eaa9efec113cde1e8e5f4a833..5b89662493c9571c046cd1b2c881c733d441b921 100644
(file)
--- a/
sound/x86/intel_hdmi_audio.c
+++ b/
sound/x86/intel_hdmi_audio.c
@@
-1665,6
+1665,11
@@
static int __maybe_unused hdmi_lpe_audio_resume(struct device *dev)
static void hdmi_lpe_audio_free(struct snd_card *card)
{
struct snd_intelhad *ctx = card->private_data;
+ struct intel_hdmi_lpe_audio_pdata *pdata = ctx->dev->platform_data;
+
+ spin_lock_irq(&pdata->lpe_audio_slock);
+ pdata->notify_audio_lpe = NULL;
+ spin_unlock_irq(&pdata->lpe_audio_slock);
cancel_work_sync(&ctx->hdmi_audio_wq);