mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 13:43:55 +08:00
ALSA: hda - Clear codec->beep at release
Clear codec->beep field in snd_hda_detach_beep_device() to be sure. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
c8dcdf829c
commit
c44765b8c8
@ -138,6 +138,7 @@ void snd_hda_detach_beep_device(struct hda_codec *codec)
|
|||||||
|
|
||||||
input_unregister_device(beep->dev);
|
input_unregister_device(beep->dev);
|
||||||
kfree(beep);
|
kfree(beep);
|
||||||
|
codec->beep = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_HDA(snd_hda_detach_beep_device);
|
EXPORT_SYMBOL_HDA(snd_hda_detach_beep_device);
|
||||||
|
Loading…
Reference in New Issue
Block a user