Skip to content

Commit

Permalink
hw/audio/hda: free timer on exit
Browse files Browse the repository at this point in the history
Fixes: 280c1e1 ("audio/hda: create millisecond timers that handle IO")

Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Akihiko Odaki <[email protected]>
Message-ID: <[email protected]>
(cherry picked from commit f27206c)
Signed-off-by: Michael Tokarev <[email protected]>
  • Loading branch information
elmarco authored and Michael Tokarev committed Oct 16, 2024
1 parent 10e3edd commit 2787ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/audio/hda-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ static void hda_audio_exit(HDACodecDevice *hda)
continue;
}
if (a->use_timer) {
timer_del(st->buft);
timer_free(st->buft);
}
if (st->output) {
AUD_close_out(&a->card, st->voice.out);
Expand Down

0 comments on commit 2787ca0

Please sign in to comment.