From 400633ace02939e5e4f2a0af9dca33d342b4759d Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 25 Oct 2018 08:34:57 +0200 Subject: [PATCH] aaf: do not free twice aaf - snd_pcm_close() is called from snd_pcm_ioplug_delete() Signed-off-by: Jaroslav Kysela --- aaf/pcm_aaf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aaf/pcm_aaf.c b/aaf/pcm_aaf.c index 65fa0fb..b1c3d83 100644 --- a/aaf/pcm_aaf.c +++ b/aaf/pcm_aaf.c @@ -1186,7 +1186,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(aaf) if (res < 0) { SNDERR("Failed to set hw constraints"); snd_pcm_ioplug_delete(&aaf->io); - goto err; + return res; } *pcmp = aaf->io.pcm; -- 2.47.1