summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pcm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pcm.c b/pcm.c
index 0c6afa9..a4f7f0e 100644
--- a/pcm.c
+++ b/pcm.c
@@ -160,6 +160,8 @@ static int pcm_hw_free(struct snd_pcm_substream *substream)
err = DO_AUDIOPATH_CB(
(struct snd_avirt_audiopath *)PRIVATE_DATA(substream)->audiopath,
hw_free, substream);
+ if (err < 0)
+ return err;
return snd_pcm_lib_free_vmalloc_buffer(substream);
}