Message ID | 20231127214325.2477247-1-Frank.Li@nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3484204vqx; Mon, 27 Nov 2023 13:43:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGd6vH6qlQlCVh0CnI3nqaWYe5EfSAqQyFIQdqW/MbSOYUtLVghTjMhWgjRMhjhqnzrGbH7 X-Received: by 2002:a17:90b:1b42:b0:285:b9b9:bdf2 with SMTP id nv2-20020a17090b1b4200b00285b9b9bdf2mr5898804pjb.2.1701121434633; Mon, 27 Nov 2023 13:43:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701121434; cv=pass; d=google.com; s=arc-20160816; b=m5b+MyVewgt6/To+EEkKRvX6H/Vkj8wzRxiPrmeGC5spN5WiFhzKNsdLnh4CJ9bHgs NO4lnOa+B6ZhocVsfqhPa0Uau1B9MXanRilGdqlrtmz84J50So4qu/8bfquwUxJUWYQh g+4EiqgzqYkH9tSdbtfbb9G9jicjGjhKcGsE+/pzeSxiWzqyACvVcMjypiB3yraWUPDg Ewjc8bVMjgg0OIrLUTa/yrnEqeIc+QkITy0JkBf22/U81NcOzxDJHl2JhV6TLqQ14fhe hlCSEr++ltGLFBTvxiCAthLNBnxovALpFJ17eSHqEF3fvEIIfWLcW5T1gMAKwYcKH1di u3Gw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:to:from:dkim-signature; bh=FxytWk+jybXR3cgfzcjYVZ5PS4AZYUVXNvsnrJk/hDM=; fh=+oWTFDj64jJixLpYAwIRc8CUkAco5goNQcrzQs1dESQ=; b=BGlV3VEtPTFgcUjTH7fw5z14+XQZ7d7eAQhwd1sKWzodGwwUW6L3LxxUSQrwcyGv2H ioMYLVTNWBx6Cvr4Z1uSH+BuMV69UjOemzqEMtSiZ3TXTOcINYBmrlj6vjh77il54iHY URNz6BcXai9MAeGbpK17vDBNAd8/fYvFLDIGlefL4U6HV/TAiPjFG/Ut7Zl8sdbDop80 1lL2uw8BvlpwWahEO/zka2o6jMw5LXvdkG93Enyo5bSo5+V9jOK+IP6tUqzTaqA3uKM5 gJc0mNlYR87+WskpSVOT1Bu57JJNQDdE9vV/LHDYGL6gtz7hoCgR6fmoYqml5+F3s2wB bBQw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="HuoZY9q/"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bo10-20020a17090b090a00b002774985e8b7si11086307pjb.168.2023.11.27.13.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 13:43:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="HuoZY9q/"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id A99FF8096B9F; Mon, 27 Nov 2023 13:43:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232732AbjK0Vnk (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 27 Nov 2023 16:43:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbjK0Vni (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Nov 2023 16:43:38 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2079.outbound.protection.outlook.com [40.107.20.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87B9695; Mon, 27 Nov 2023 13:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JBYCnFnvE0nVc1/1JejL1F8WKUmAsGq1ZuGZIJtpApfJ4qFRfFe/pHFdjnC/f1P3hQJl49Vrvz+PdpVsm2YtxvdN2dc4gE7zcRCDVQaD83AJeCIrtSbDGTd1Urx8KHrq49yV3zUgWSgYxRTslQaPIyRYqbSTbPOSEDnkaojgpXupmSistGFgVUfnh41/qV03n4qsZKgQPoOCWDWS2gKZAAVP/H0DGKSbeEpicUBa7LlrFP78/tAuDmWWWEpArKKmYbLGaYlA7oFN2u1AVfcidGaH0qtfkypF92G40RhJ0CoeB7hCi5CVcz2JI/h95jMJzgkmumpMvjwQ6IK3Q89ZLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FxytWk+jybXR3cgfzcjYVZ5PS4AZYUVXNvsnrJk/hDM=; b=S5T0OAj7qJtqff504pkZr7P4iRBOdbciFBsdDytVByjz22ySlq9IQZaFUfoIAxEcdKV/y8mzG2EqYhYN2Tdjas/7H60Eyu3R2ACfuGtvPiCWAWWLOvOElZr34UVt1ci2lGj71Gj7n10qG9unks3yOLMJMrZrPofxf1FyI1OyzbBCk0CM9nftlur9n/fFzLoxiw3BZ+VoOiKb+54/nk4Edy5actvxXXqIfuxnQ3knijmhKxq7uHZuBiKRKFJKKis8+e45Age2asur+p5cdvOpik5ss86HfxtBjzQWbSQk/F6ZBeh7mvVkVNadB6na8SdQG9lUea16rSFAV6YyYqqjcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FxytWk+jybXR3cgfzcjYVZ5PS4AZYUVXNvsnrJk/hDM=; b=HuoZY9q/KtfrtcqBX4VNs5KE4EN46YICnPtttJP7V40W8KeSj5jCj7+ii8TZUbJK5RYfF53bjktxtHxgJ7EQERjv13CryhnfwzFfR2C2ZSAvMLROScApdH4FciEOQXbEycNsYfm9eHa8Z9llM2sE8d9lpbyJPp1A7sBfh6B6yHg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by AM0PR04MB7171.eurprd04.prod.outlook.com (2603:10a6:208:19c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.21; Mon, 27 Nov 2023 21:43:41 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40%6]) with mapi id 15.20.7046.015; Mon, 27 Nov 2023 21:43:41 +0000 From: Frank Li <Frank.Li@nxp.com> To: Vinod Koul <vkoul@kernel.org>, imx@lists.linux.dev (open list:FREESCALE eDMA DRIVER), dmaengine@vger.kernel.org (open list:FREESCALE eDMA DRIVER), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/1] dmaengine: fsl-edma: fix DMA channel leak in eDMAv4 Date: Mon, 27 Nov 2023 16:43:25 -0500 Message-Id: <20231127214325.2477247-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY5PR20CA0023.namprd20.prod.outlook.com (2603:10b6:a03:1f4::36) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AM0PR04MB7171:EE_ X-MS-Office365-Filtering-Correlation-Id: 08ff7b6f-fb85-4fba-34ca-08dbef91ebf7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2t9TaNPUx6HULovB0LClphXJhMWHleYrwjsxElrE63u1oijp+2RNMzF/5ouUsUO86JJVIqpK+eXz9qO2iJWmEQ6sBwRY2UWegn2dhEOnG9LoB8GWU+UtWtZ8oLTU1qB8lR4XPfCqIxCJ8JHjIsk0d9kXONnosg0WbMdSIIg7ipVsit6V+TlRo/X/NpQZDCwdTSASDWBjwQdF2VJnVLTI8WLcZyL+DpZqc1YL4GbeMTMO1b69JeZ10L8IOKiG93j+jXw6A3BiqF+PcnDUDnn4uC8lpi6T7AAxIXHYZeD3LijALDi1+M4nCUcRkE6dZGjqm5+Z5X2U7ODHRHOL2EqkH77rNkro5hXr3UjMq3u1uoZXo7my2VbaAkgdrqLaP2fEWosTg+sywIrkSMyW9FzrwfvMlETA2vAjLvQiryrLOMA8eFgyT3oJuG7UfSuPEenO/ozLqklLS+HPOTWI7/vsl2SYy6/88Ke6q5ZA3MBklkCEUFisRY6JUCxTjPKem1JpgEzJN15SiY8fwPXv+iHIz6uAB+F1ix+9DFaelxFXsBNo3tf57qfY0YfqjYHGmE+ivFC2iho1pML7h9qpVvnh/sqOF895B3YhLdUK1IRBMuiUAbRAALy7enK4NuCmLdgP X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(376002)(346002)(136003)(366004)(39860400002)(230922051799003)(186009)(1800799012)(451199024)(64100799003)(38100700002)(38350700005)(36756003)(86362001)(316002)(41300700001)(66476007)(66946007)(66556008)(8676002)(8936002)(5660300002)(2906002)(4744005)(6512007)(1076003)(6506007)(52116002)(2616005)(26005)(6486002)(478600001)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oQbeuvE9fOc1lNJhZtAimMCTXEpmgeS9ZI+R9LcmJlRiY4aXUwHjAZJRjx9s7X9MhonCu01bzIROIzxhCbzDqezuxPBLTv3Rt1PCF7WUb68QiONf2XmE3U75+yhasPYKlvHaoGU+1KJxxfyKr1cICb6JyLctAQ0MdirvfXvSHU9J/qd2VR0JPgAFdJ3tUyX/GsbEBreVU++EGM7TNzxpA3lSeDqJlKckyo/hm8FDn4tig1WUO1+sLmrDBFxribiMxlqOCF7y/YTJZcqHkjfRXjnFvDEKubJXixasMsKB9dQDnFV84Sfk01twGEAsxuSmXm2cdQK8DDbuNNFsopwyhdMhWWAkFfJ5OPvdIxWRgkJBaPEqfKAatv8t+CZf2LnE0JzVnoCp0uBMvCpqeT6p/4qfWeabPhzUuXj6q6V0N7LEcapITvUhhf1qpOgd6uqV1zxgpz3VteCJBmvvQA7qcUAzdf0PplTanBUlvtCZ0qq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fF8lFe8= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 08ff7b6f-fb85-4fba-34ca-08dbef91ebf7 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2023 21:43:41.5711 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tBOXeI4WHO/5N68lcto6xx1gB9gOtg90c2EA00E1sSqBBP5v2N0tyMNUo0r4REjdYZx0LjUWBibYOxV+eoT5GA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7171 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 13:43:49 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783755109255370019 X-GMAIL-MSGID: 1783755109255370019 |
Series |
[1/1] dmaengine: fsl-edma: fix DMA channel leak in eDMAv4
|
|
Commit Message
Frank Li
Nov. 27, 2023, 9:43 p.m. UTC
Allocate channel count consistently increases due to a missing source ID
(srcid) cleanup in the fsl_edma_free_chan_resources() function at imx93
eDMAv4.
Reset 'srcid' at fsl_edma_free_chan_resources().
Cc: stable@vger.kernel.org
Fixes: 72f5801a4e2b ("dmaengine: fsl-edma: integrate v3 support")
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
drivers/dma/fsl-edma-common.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Mon, 27 Nov 2023 16:43:25 -0500, Frank Li wrote: > Allocate channel count consistently increases due to a missing source ID > (srcid) cleanup in the fsl_edma_free_chan_resources() function at imx93 > eDMAv4. > > Reset 'srcid' at fsl_edma_free_chan_resources(). > > > [...] Applied, thanks! [1/1] dmaengine: fsl-edma: fix DMA channel leak in eDMAv4 commit: 4ee632c82d2dbb9e2dcc816890ef182a151cbd99 Best regards,
diff --git a/drivers/dma/fsl-edma-common.c b/drivers/dma/fsl-edma-common.c index 49e6cfc285029..c8acff09308fd 100644 --- a/drivers/dma/fsl-edma-common.c +++ b/drivers/dma/fsl-edma-common.c @@ -837,6 +837,7 @@ void fsl_edma_free_chan_resources(struct dma_chan *chan) dma_pool_destroy(fsl_chan->tcd_pool); fsl_chan->tcd_pool = NULL; fsl_chan->is_sw = false; + fsl_chan->srcid = 0; } void fsl_edma_cleanup_vchan(struct dma_device *dmadev)