Message ID | 1525207810-1305-6-git-send-email-Vijendar.Mukunda@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D8BD260540 for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 1 May 2018 20:50:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9BFF28D14 for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 1 May 2018 20:50:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE23C28D11; Tue, 1 May 2018 20:50:06 +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.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9075E28D15 for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 1 May 2018 20:50:05 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 2D81F267640; Tue, 1 May 2018 22:50:04 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 27277267634; Tue, 1 May 2018 22:50:02 +0200 (CEST) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0072.outbound.protection.outlook.com [104.47.34.72]) by alsa0.perex.cz (Postfix) with ESMTP id A5BA726763A for <alsa-devel@alsa-project.org>; Tue, 1 May 2018 22:49:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=AzATnnHgZkvEhGSNW68lGax+x736BL+IV++EDQhPzTw=; b=UItEBzkOpPjQauydfecpcUNK9BEuIRKQzGlWl2r9w8mYHzKdGUJTDly9WmYl4jUhtaHQyBEgTlcCH4YnTsMGWY2hMhK26Li89N/9A0WvcdiGxCMqnoTbHjWO2lEMv4rTuy0Qw7V85RWSZnITUq8XeTQo/n29p4KUTIUGu1HspGE= Received: from CY1PR1201CA0039.namprd12.prod.outlook.com (2a01:111:e400:5b9a::49) by DM2PR12MB0332.namprd12.prod.outlook.com (2a01:111:e400:50d0::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Tue, 1 May 2018 20:49:55 +0000 Received: from DM3NAM03FT020.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::206) by CY1PR1201CA0039.outlook.office365.com (2a01:111:e400:5b9a::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.715.18 via Frontend Transport; Tue, 1 May 2018 20:49:54 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; renesas.com; dkim=none (message not signed) header.d=none; renesas.com; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by DM3NAM03FT020.mail.protection.outlook.com (10.152.82.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.13 via Frontend Transport; Tue, 1 May 2018 20:49:54 +0000 Received: from LinuxHost.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.382.0; Tue, 1 May 2018 15:49:53 -0500 From: Vijendar Mukunda <Vijendar.Mukunda@amd.com> To: Date: Wed, 2 May 2018 02:20:00 +0530 Message-ID: <1525207810-1305-6-git-send-email-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525207810-1305-1-git-send-email-Vijendar.Mukunda@amd.com> References: <1525207810-1305-1-git-send-email-Vijendar.Mukunda@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(376002)(39860400002)(396003)(39380400002)(346002)(2980300002)(428003)(189003)(199004)(97736004)(54906003)(106466001)(39060400002)(5660300001)(26005)(7696005)(104016004)(305945005)(316002)(77096007)(47776003)(16586007)(2906002)(336012)(109986005)(59450400001)(53936002)(68736007)(76176011)(486006)(186003)(478600001)(86362001)(72206003)(51416003)(2616005)(426003)(4326008)(476003)(446003)(8676002)(81166006)(105586002)(81156014)(11346002)(50226002)(356003)(53416004)(1671002)(126002)(50466002)(36756003)(6666003)(48376002)(8936002)(266003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0332; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT020; 1:KVjuI6EpdpeVMHSWsDhwf3ghhA6NWdwMiIY5TXaQ4eXoXG1pbJuE8WO0k2RPuZpaknRFeBQIQCl95m/pPis3XgEw0h4dtXALYQ1YXO7i+XNzR4AX7vIwTkCt2F8z08XA X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:DM2PR12MB0332; X-Micro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SuFI7FOGl7xqed+x57YVx3cO80VNjmANDr18VQZtaxO+Y03lYYRpElqXAfH8dak0/bCTin9tFTlJgVouJwB22hCuUP4zisZGFnOuPzidJ2DC+Yk8R+AmvVj7s2He8XblB19Jr3n9qP2mM1+BJIBZOEROvbxn4TOA0OnDKmLLmuLRKbQ6i15HTEc2ctgx4NvXDve2AfcpISBZqOOVIx2CCcTPUZ3HSzLGA81vuzq5H19hjDXdic6l4CV7iu4UokO7JWuR8FUJuRWbUVOrq3yXPWBZ3xeVF9OhJ9IQuBBl0GfGYegxi8fAGE0fIMGEkjK0ROjY3NVlC+inHSWzvE8CQtW2xcGWqmTvqXEMBPupy/64s6kxSLX5qMul6nLa0+rKSlpaQ7sBUvWcuS3hY7sMJ2PSHFHYIIMmevNlsBkcHG2KA0ByQdzfqPjGWKcNuMKMKyMDIsuMVKyUmd3xQf4nyZNNiGlSO9w3Jay6yO+8 X-Microsoft-Antispam-PRVS: <DM2PR12MB03323AEB0273E3F7F102925C97810@DM2PR12MB0332.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93003095)(3231254)(944501410)(52105095)(3002001)(10201501046)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:DM2PR12MB0332; BCL:0; PCL:0; RULEID:; SRVR:DM2PR12MB0332; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0332; 4:xlrt7gCEP550lL3V4Gt6YaZAZxMbqKSUUfePc+FFj63JfHxVC40tCPrNytrgtV0I5KYHwnyS3c7E6/VSePiVbzRYwnwzpJZgxBIsdnZOkQB/pn/bSonAyfpX8ZYTiRXwaS5oxR1GhKpvmVCXdxge5lF9gtk9qBA8mysqIOCXh0y3OMfeJgRsYMd3smh/Iwxsy6PAXxAFSb2WRIDRSrtb88SZ9oeCb6TGUzZUZ6aXaev7yDyGM2KwPTdjIIptOecuIA+7lPpReQvfzhCDCtYBDZO1Ftua+5SwwpZV/8UQ9vcGsgIgXphNWJ674fjjrYP6 X-Forefront-PRVS: 06592CCE58 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR12MB0332; 23:UGUHUqMxinkyYZmpwjKSxkd3aEcCGzdCzMMxqcig+?= =?us-ascii?Q?DRmuz9fKavSDH5fu372JyI5ZRU3T1m8GTnqUYe6rioso1VoTfAdrDs4kln0e?= =?us-ascii?Q?CdoAbS4eayOQXsyfj5Tt3n5Ie0dtD4/6sCRYtb/QFmw3/q+ZTZwRb6vkaqHu?= =?us-ascii?Q?lpm+qUcqeXx/R6gLhymdjvES9Ej1ogUpeXQuXcL0AR/fk6v7gK/pcTieP3uO?= =?us-ascii?Q?IRjbn6ZQndGqJAvgtikDowP1iKwf2gfSmVyGISXXZBkDiM1yAYvBd3MCYjgA?= =?us-ascii?Q?h8/i74kxwtbxYUYyRZ41ZKa7yxNLepUOSvFUM7NfrgUelAuxGG721erSLvcE?= =?us-ascii?Q?VoImqQDzFLpFFYK7MMoJSxweKL5mGktWvX+aFcNl/8EnGDu9h475EfT9hCsY?= =?us-ascii?Q?1rKfj3h+j8nG8UVjpAWedrH7CPXLIJ4iaUw5ioUR83jeiJYpUXcUn2D3STDB?= =?us-ascii?Q?Ysf0F21VuQrO0unCUvL7r6D8pFZNcWyQqoTOPeTebM2smrBSCcwPeGanGk6M?= =?us-ascii?Q?VLvKe0jxL59S/9E+hS5ICmPFnzK9lOz3EQpJcpLJV/3qWEeWgqYuBRiW5HlM?= =?us-ascii?Q?DZKa4+Rt15aoPORnDGs+qOJTGsR9U+T+neNCRqfUJ8LXRpodPVOcRUtd5jDS?= =?us-ascii?Q?lHaTaHOD2dsbaki5IEA0peYRwuxnR7EylROh5OUJuYHq034bqZfL6Dg0nMpG?= =?us-ascii?Q?jW/yJu0FMTH2UNEvG07nfMIVQq/+Gz81h51LSLK9bU+KvMDSE0zBG02wonlM?= =?us-ascii?Q?28NdOQWr7QEDKmLL6uTx0xt+z5KlZ9m6Ft99EwBP50KR4YScLnts0L92B5XA?= =?us-ascii?Q?Ynl6elvpQRseg9ca0if+bKpbJSbGt+cjPD3EL6nXq5mG/caEdnEiL+ikzal1?= =?us-ascii?Q?4alvRSfdPIP7w8nm43F6hV+FoC81oWPhGywJaeEykSjp5A/IF9++4elSByvh?= =?us-ascii?Q?ncRBUESrUS7d0XCiK5lgBfSrsSNHYOBi1QoxKwN2N8KnnDsh5N3La4Wp6vFV?= =?us-ascii?Q?afmxB/nfVyYhKDBDX/65XKzWP4XSTyf78PrE6/GnUTj+pBwNQUQyC+j6rB9m?= =?us-ascii?Q?zdI6UKSjeniBTed7khcFmaW1teBPxSa6NgOWnvg5XK+cJtEpOLRXfdRWOyH4?= =?us-ascii?Q?RV0yoCeI1xKWAfgaMS6FeyU3TIq74ee9QgsIOPfvsuKvhZ2b9cnOMn7O9tqf?= =?us-ascii?Q?HMrdFlnjG/5WWWUe43XG2KZBLaR22XA9mJjU1cmDdJCOyd3CjfJjP3QTkR8f?= =?us-ascii?Q?4YKNOLPc13IUb/i5Jw=3D?= X-Microsoft-Antispam-Message-Info: 5tZMJm/ykfbGNvXQ2tSAOTnTmteK1MQhB65yv2KrsQMV0JaF14b/Jpqr8180dX4fcRXQeK2NpLWk4kty3OaAzEECL58I5Tg6Uli/fAFuIZI4WZ9SCN2aDdJthtDdxaJVl2voziqC7LGia+/8eOasLZ/FCegI2zPyCpYmxwllrKyuWBzRLxShfU+BsY2AZvlE X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0332; 6:w9hg/tkvVw0UyXrsJdWc0JoEzpaGpDU9iLy2JZsPirKPMxNesXhcAbpKI/a1EMJu3cgxvRVV9it8kAUc+2rsz9s94zNDg+YckDwLJkIU827DhqhMkz5ZdzPVrGLqa+ruDEeo2ULGupklS45OSCxC4rbJ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RRfBnmYr9UkzwakN9V0HQUNj1a8y1381kvSj8T3nlVpPFGHNFPdKWaaT8YqDlp5ACPNmCjZYQIny9F491chwO/3ri+Hh+l7Sw05rZrCyEl/uV5dRklOL2Bpcxn X-MS-Office365-Filtering-Correlation-Id: 269f0126-c5c6-4f9c-0c6e-08d5afa517ad X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2018 20:49:54.0412 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 269f0126-c5c6-4f9c-0c6e-08d5afa517ad X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0332 Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." <alsa-devel@alsa-project.org>, Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>, Liam Girdwood <lgirdwood@gmail.com>, open list <linux-kernel@vger.kernel.org>, Takashi Iwai <tiwai@suse.com>, Jason Clinton <jclinton@chromium.org>, Mark Brown <broonie@kernel.org>, Vijendar Mukunda <Vijendar.Mukunda@amd.com>, Alex Deucher <alexander.deucher@amd.com>, Akshu Agrawal <akshu.agrawal@amd.com>, Guenter Roeck <linux@roeck-us.net> Subject: [alsa-devel] [PATCH 06/10] ASoC: amd: memory release for rtd structure X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> List-Unsubscribe: <http://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c index 8236116..ec9cab3 100644 --- a/sound/soc/amd/acp-pcm-dma.c +++ b/sound/soc/amd/acp-pcm-dma.c @@ -998,8 +998,6 @@ static int acp_dma_close(struct snd_pcm_substream *substream) DRV_NAME); struct audio_drv_data *adata = dev_get_drvdata(component->dev); - kfree(rtd); - if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { adata->play_i2ssp_stream = NULL; /* @@ -1028,7 +1026,7 @@ static int acp_dma_close(struct snd_pcm_substream *substream) */ if (!adata->play_i2ssp_stream && !adata->capture_i2ssp_stream) acp_reg_write(0, adata->acp_mmio, mmACP_EXTERNAL_INTR_ENB); - + kfree(rtd); return 0; }
rtd structure freed early may result in kernel panic in dma close call back. moved releasing memory for rtd structure to the end of dma close callback. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> --- sound/soc/amd/acp-pcm-dma.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)