diff mbox series

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

Message ID 20190601030801.3675-1-o-takashi@sakamocchi.jp (mailing list archive)
State New, archived
Headers show
Series ALSA: firewire-motu: fix destruction of data for isochronous resources | expand

Commit Message

Takashi Sakamoto June 1, 2019, 3:08 a.m. UTC
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>
---
 sound/firewire/motu/motu-stream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai June 11, 2019, 9:34 a.m. UTC | #1
On Sat, 01 Jun 2019 05:08:01 +0200,
Takashi Sakamoto wrote:
> 
> 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>

Applied now, thanks.


Takashi
diff mbox series

Patch

diff --git a/sound/firewire/motu/motu-stream.c b/sound/firewire/motu/motu-stream.c
index 73e7a5e527fc..483a8771d502 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)