Skip to content

Commit

Permalink
ALSA: hda - Clear codec->beep at release
Browse files Browse the repository at this point in the history
Clear codec->beep field in snd_hda_detach_beep_device() to be sure.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Feb 6, 2009
1 parent c8dcdf8 commit c44765b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/pci/hda/hda_beep.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ void snd_hda_detach_beep_device(struct hda_codec *codec)

input_unregister_device(beep->dev);
kfree(beep);
codec->beep = NULL;
}
}
EXPORT_SYMBOL_HDA(snd_hda_detach_beep_device);

0 comments on commit c44765b

Please sign in to comment.