]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.19/alsa-firewire-motu-fix-destruction-of-data-for-isochronous-resources.patch
Fix up backported ptrace patch
[thirdparty/kernel/stable-queue.git] / queue-4.19 / alsa-firewire-motu-fix-destruction-of-data-for-isochronous-resources.patch
1 From 0e3fb6995bfabb23c172e8b883bf5ac57102678e Mon Sep 17 00:00:00 2001
2 From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
3 Date: Sat, 1 Jun 2019 12:08:01 +0900
4 Subject: ALSA: firewire-motu: fix destruction of data for isochronous resources
5
6 From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
7
8 commit 0e3fb6995bfabb23c172e8b883bf5ac57102678e upstream.
9
10 The data for isochronous resources is not destroyed in expected place.
11 This commit fixes the bug.
12
13 Cc: <stable@vger.kernel.org> # v4.12+
14 Fixes: 9b2bb4f2f4a2 ("ALSA: firewire-motu: add stream management functionality")
15 Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
16 Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18
19 ---
20 sound/firewire/motu/motu-stream.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- a/sound/firewire/motu/motu-stream.c
24 +++ b/sound/firewire/motu/motu-stream.c
25 @@ -345,7 +345,7 @@ static void destroy_stream(struct snd_mo
26 }
27
28 amdtp_stream_destroy(stream);
29 - fw_iso_resources_free(resources);
30 + fw_iso_resources_destroy(resources);
31 }
32
33 int snd_motu_stream_init_duplex(struct snd_motu *motu)