diff options
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/hda_beep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_beep.c b/sound/pci/hda/hda_beep.c index 960fd7970384..4de5bacd3929 100644 --- a/sound/pci/hda/hda_beep.c +++ b/sound/pci/hda/hda_beep.c | |||
@@ -138,6 +138,7 @@ void snd_hda_detach_beep_device(struct hda_codec *codec) | |||
138 | 138 | ||
139 | input_unregister_device(beep->dev); | 139 | input_unregister_device(beep->dev); |
140 | kfree(beep); | 140 | kfree(beep); |
141 | codec->beep = NULL; | ||
141 | } | 142 | } |
142 | } | 143 | } |
143 | EXPORT_SYMBOL_HDA(snd_hda_detach_beep_device); | 144 | EXPORT_SYMBOL_HDA(snd_hda_detach_beep_device); |