diff options
author | Peter Maydell | 2014-12-16 17:58:05 +0100 |
---|---|---|
committer | Peter Maydell | 2014-12-23 00:12:25 +0100 |
commit | b28fb27b5edf77f6fd0ac550a156fb20f2218db3 (patch) | |
tree | 4b7365e1e655036a1e1639b7cc6b7f6e0479edcf /hw/net/vmxnet3.h | |
parent | Merge remote-tracking branch 'remotes/gonglei/tags/bootdevice-next-20141222' ... (diff) | |
download | qemu-b28fb27b5edf77f6fd0ac550a156fb20f2218db3.tar.gz qemu-b28fb27b5edf77f6fd0ac550a156fb20f2218db3.tar.xz qemu-b28fb27b5edf77f6fd0ac550a156fb20f2218db3.zip |
audio: Don't free hw resources until after hw backend is stopped
When stopping an audio voice, call the audio backend's fini
method before calling audio_pcm_hw_free_resources_ rather than
afterwards. This allows backends which use helper threads (like
pulseaudio) to terminate those threads before the conv_buf or
mix_buf are freed and avoids race conditions where the helper
may access a NULL pointer or freed memory.
Cc: qemu-stable@nongnu.org
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1418406239-9838-1-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'hw/net/vmxnet3.h')
0 files changed, 0 insertions, 0 deletions