ALSA: firewire-motu: fix destruction of data for isochronous resources [Linux 4.14.128]

ALSA: firewire-motu: fix destruction of data for isochronous resources [Linux 4.14.128]

This Linux kernel change "ALSA: firewire-motu: fix destruction of data for isochronous resources" is included in the Linux 4.14.128 release. This change is authored by Takashi Sakamoto <o-takashi [at] sakamocchi.jp> on Sat Jun 1 12:08:01 2019 +0900. The commit for this change in Linux stable tree is e212797 (patch) which is from upstream commit 0e3fb69. The same Linux upstream change may have been applied to various maintained Linux releases and you can find all Linux releases containing changes from upstream 0e3fb69.

ALSA: firewire-motu: fix destruction of data for isochronous resources

commit 0e3fb6995bfabb23c172e8b883bf5ac57102678e upstream.

The data for isochronous resources is not destroyed in expected place.
This commit fixes the bug.

Cc: <stable@vger.kernel.org> # v4.12+
Fixes: 9b2bb4f2f4a2 ("ALSA: firewire-motu: add stream management functionality")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 sound/firewire/motu/motu-stream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/firewire/motu/motu-stream.c b/sound/firewire/motu/motu-stream.c
index 73e7a5e..483a877 100644
--- a/sound/firewire/motu/motu-stream.c
+++ b/sound/firewire/motu/motu-stream.c
@@ -345,7 +345,7 @@ static void destroy_stream(struct snd_motu *motu,
    }

    amdtp_stream_destroy(stream);
-   fw_iso_resources_free(resources);
+   fw_iso_resources_destroy(resources);
 }

 int snd_motu_stream_init_duplex(struct snd_motu *motu)

Leave a Reply

Your email address will not be published. Required fields are marked *