aboutsummaryrefslogtreecommitdiffstats
path: root/testing/alsa-plugins/alsa-plugins-1.1.7-double_free_fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/alsa-plugins/alsa-plugins-1.1.7-double_free_fix.patch')
-rw-r--r--testing/alsa-plugins/alsa-plugins-1.1.7-double_free_fix.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/testing/alsa-plugins/alsa-plugins-1.1.7-double_free_fix.patch b/testing/alsa-plugins/alsa-plugins-1.1.7-double_free_fix.patch
deleted file mode 100644
index f62ede8be2..0000000000
--- a/testing/alsa-plugins/alsa-plugins-1.1.7-double_free_fix.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From: Jaroslav Kysela <perex@perex.cz>
-Date: Tue, 23 Oct 2018 07:32:46 +0000 (+0200)
-Subject: a52_close: set slave to NULL to avoid double pcm free in open fcn
-X-Git-Tag: v1.1.8~19
-X-Git-Url: http://git.alsa-project.org/?p=alsa-plugins.git;a=commitdiff_plain;h=a4e7e1282c57a2f4e83afe9a4008042d8b4c5bb9
-
-a52_close: set slave to NULL to avoid double pcm free in open fcn
-
-Signed-off-by: Jaroslav Kysela <perex@perex.cz>
----
-
-diff --git a/a52/pcm_a52.c b/a52/pcm_a52.c
-index e431fd0..b005bc2 100644
---- a/a52/pcm_a52.c
-+++ b/a52/pcm_a52.c
-@@ -654,10 +654,13 @@ static int a52_poll_revents(snd_pcm_ioplug_t *io, struct pollfd *pfd,
- static int a52_close(snd_pcm_ioplug_t *io)
- {
- struct a52_ctx *rec = io->private_data;
-+ snd_pcm_t *slave = rec->slave;
-
- a52_free(rec);
-- if (rec->slave)
-- return snd_pcm_close(rec->slave);
-+ if (slave) {
-+ rec->slave = NULL;
-+ return snd_pcm_close(slave);
-+ }
- return 0;
- }
-