From patchwork Sat Jun 1 03:08:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Sakamoto X-Patchwork-Id: 10971165 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6397D912 for ; Sat, 1 Jun 2019 03:09:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50EA428D72 for ; Sat, 1 Jun 2019 03:09:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4257728D9C; Sat, 1 Jun 2019 03:09:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9374528D72 for ; Sat, 1 Jun 2019 03:09:08 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 8AE3C167E; Sat, 1 Jun 2019 05:08:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8AE3C167E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1559358546; bh=q5VDW1jHBOgaAXgUxvh5k73w45qpJVWs3fyoM/vOpg8=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=l0utTFYsW7m8ChJTux+J5acCioWu+to3HG7wSGO48Vs+v3II4mXgk0A05cmjxHbX4 lTZndWv3906ztxw3N2dVCmUrUgfLNJuymI8kwRBTW2+bf36p5CfL6pLA47+DFGJAOt eTj7hYqFUjpk3sLyhatyZ/9lcTrNMtYC4xVZ2ah0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id E420BF8072E; Sat, 1 Jun 2019 05:08:15 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id AA25EF89706; Sat, 1 Jun 2019 05:08:14 +0200 (CEST) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 44F80F8072E for ; Sat, 1 Jun 2019 05:08:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 44F80F8072E Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="L/9bNPZa"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="26Lebn79" Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id BE3751234; Fri, 31 May 2019 23:08:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 31 May 2019 23:08:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=VGVBhByXJBs/Thj5O+O4Fr707/ XLIrNFaMGYre5Xmkk=; b=L/9bNPZaQWm0TMRrkHYUlOkA29WIiezfr48J6KdUYX Ac/F0tDkwzoIs5oWtyBN9FNpYddTQnIso+C/icwNVkKderXkS313TtnByx8BAe7P iWPdLEhYTEy9JlH3jtr6LWbcjt+0/vGZpJkEwm7oYDx4bTqVKfTF9KJfm2aPTZZQ vNpeZEc1rOPNAHrj80ee2DuoQn0opS2GQvS+7DQCtGT+JNVKUIGxAl6+U6l2LJfM IYcGvZFW8kxckLfS4sTnaM0bajzwvJudsg25aHLkVvXAVWPTKKDzb+NFLvJDtEtv DZXzLtTI8ysbsSCbPOW7kNquFEHMZzqpcAgI4SOIhT5Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=VGVBhByXJBs/Thj5O +O4Fr707/XLIrNFaMGYre5Xmkk=; b=26Lebn79JkJzPzizFQ1ePwxsJ0Oh8ccCW TtdTtKwWorlcxoDu+PbbieeeaU6xCJfc5icuGmLhyM6f70q2i4EO7eck0UbPnHVO zE1AcHCxd0RFdK/ymGCMULEe+JIGpLGRb1SwBeVXNs+mCNjrnhlrCHdMRNefUTup sus+E3v+UEBQ1mXDjT/C30H/MnIBkX07zWFXM4PFlO4xJXIS07yW2j8mHEbchaVm 4Ruq/S+qvx+hHZhoWXJ/FEh36x5WsGLAFGMV2hoV+kQyou1dL7AIMDQUdtTdueLt O7wjEFC5Eu8npfYB0p70QlzbS/xjG2Exb6/m7tWNeWBim1IbCvdrw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudefvddgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepvfgrkhgrshhhihcuufgrkhgrmhhothhouceoohdqthgrkhgrshhh ihesshgrkhgrmhhotggthhhirdhjpheqnecukfhppedugedrfedrjeehrddukedunecurf grrhgrmhepmhgrihhlfhhrohhmpehoqdhtrghkrghshhhisehsrghkrghmohgttghhihdr jhhpnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost.localdomain (ae075181.dynamic.ppp.asahi-net.or.jp [14.3.75.181]) by mail.messagingengine.com (Postfix) with ESMTPA id CFDC080059; Fri, 31 May 2019 23:08:04 -0400 (EDT) From: Takashi Sakamoto To: clemens@ladisch.de, tiwai@suse.de Date: Sat, 1 Jun 2019 12:08:01 +0900 Message-Id: <20190601030801.3675-1-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, stable@vger.kernel.org Subject: [alsa-devel] [PATCH] ALSA: firewire-motu: fix destruction of data for isochronous resources X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP The data for isochronous resources is not destroyed in expected place. This commit fixes the bug. Cc: # v4.12+ Fixes: 9b2bb4f2f4a2 ("ALSA: firewire-motu: add stream management functionality") Signed-off-by: Takashi Sakamoto --- 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 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)