Message ID | 1457416921-29147-1-git-send-email-xuelin.shi@nxp.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <dmaengine-owner@kernel.org> X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CA6369F46A for <patchwork-dmaengine@patchwork.kernel.org>; Tue, 8 Mar 2016 07:42:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D24E62017E for <patchwork-dmaengine@patchwork.kernel.org>; Tue, 8 Mar 2016 07:42:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E976B2017D for <patchwork-dmaengine@patchwork.kernel.org>; Tue, 8 Mar 2016 07:42:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753810AbcCHHmp (ORCPT <rfc822;patchwork-dmaengine@patchwork.kernel.org>); Tue, 8 Mar 2016 02:42:45 -0500 Received: from mail-by2on0120.outbound.protection.outlook.com ([207.46.100.120]:21477 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753483AbcCHHmo (ORCPT <rfc822;dmaengine@vger.kernel.org>); Tue, 8 Mar 2016 02:42:44 -0500 Received: from DM2PR03CA0010.namprd03.prod.outlook.com (10.141.96.20) by BN1PR0301MB0644.namprd03.prod.outlook.com (10.160.171.17) with Microsoft SMTP Server (TLS) id 15.1.415.20; Tue, 8 Mar 2016 07:27:03 +0000 Received: from BY2FFO11FD014.protection.gbl (2a01:111:f400:7c0c::195) by DM2PR03CA0010.outlook.office365.com (2a01:111:e400:2428::20) with Microsoft SMTP Server (TLS) id 15.1.427.16 via Frontend Transport; Tue, 8 Mar 2016 07:27:03 +0000 Authentication-Results: spf=neutral (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Neutral (protection.outlook.com: 192.88.168.50 is neither permitted nor denied by domain of freescale.com) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD014.mail.protection.outlook.com (10.1.14.76) with Microsoft SMTP Server (TLS) id 15.1.427.7 via Frontend Transport; Tue, 8 Mar 2016 07:27:02 +0000 Received: from localhost (rock.ap.freescale.net [10.193.20.106]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u287R0KN003492; Tue, 8 Mar 2016 00:27:01 -0700 From: <xuelin.shi@nxp.com> To: <vinod.koul@intel.com>, <pku.leo@gmail.com> CC: <linuxppc-dev@lists.ozlabs.org>, <dmaengine@vger.kernel.org>, Xuelin Shi <xuelin.shi@nxp.com> Subject: [PATCH] dmaengine:fsldma: fix memory leak Date: Tue, 8 Mar 2016 14:02:01 +0800 Message-ID: <1457416921-29147-1-git-send-email-xuelin.shi@nxp.com> X-Mailer: git-send-email 1.8.4 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(979002)(6009001)(2980300002)(199003)(189002)(105586002)(4326007)(2876002)(2906002)(586003)(5008740100001)(189998001)(5003940100001)(11100500001)(5001770100001)(47776003)(76506005)(57986006)(1220700001)(1096002)(229853001)(6806005)(104016004)(92566002)(19580395003)(19580405001)(81166005)(48376002)(86152002)(50986999)(50466002)(106466001)(50226001)(36756003)(33646002)(87936001)(77096005)(7059030)(42882005)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR0301MB0644; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD014; 1:nV9IT7UhXa/0DajmWOQ48xgqgbuPzELSQgQnrO18S431dHcVUCVbPSTV4xOi+ube/PHPGN7sHes5GzsjlRKBGQX23xPRd5xEfJaJjIBkjxl8luq8dN73pu9q4citY25iuE9ohaxP0SJq7rMo64yVQ1zMuYNdSbHbtjm6DzcBR+C3sqJxX1eBvFPTe0WxSPPfln/Rro7HvmWhs+22unCyku9GTaGJ8v0xogxBfIsc9oMPkBFRdE60wG7jEVna4g2zZjfQ+7xuFjZFlumkZ9gDUdz553J0mihgnoHPpXE7UbYMH0ZbvAB68re9vivnSP8egW9QUXKO8ldzHMQE9doAWh8IZbI6xODZtSkDA3uXiGKydkGOjh17BCFZgiLS43+4xbGuSaJnebdqPDH+g3PeLMJjhrGkbNtgjNQXTaU0Tk80LpaoWBDa+r0VHp+9S1jSXUsXn8mSJJpKl3kYc0QJCrsDF07NGT5BVBYFhkI/Eq+8Vi6pWN9qKG2o6HGY/W/Uve2A4ZmjbVQrGQPuLM4brj+KuP4BwN+ux7KtSGeVSzE/mJE255svRn1py9hMGIBHlxYTujvKIKmt8AIp9ox6m2zVW31gpSYKUkGdWZKP4U0= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: e2a18620-2b81-48e3-320a-08d347230b4d X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0644; 2:hJTSw7voPQU9IwpMekkhUts2Ti7Vf/6AKOJ5bfDIiM3iW3fQCrHQgP8Ll3doC+i5LDb5WlKEyGdoGTW/MvNLZLHpwqwv/Rl2IRc9hbx/iwTmdrRr/060ZFxlO0UqBIbzvig6nKBz+JaB2FrSBREeZoNnlYddDiRUALNfodklyNO4NhzLVNfWUj54Y004EtYS; 3:zsWTjmwpax2R8En7KK69y0zWzxa4WD4xcYE+5wWmod9tUpJqbcjNAnrnV0+v4rVGXbL9vRUa8s1yNNf/f84omICwxJw/by9r66IA3xjvSls+yiUaq/WxfWAPfTug7F9BBSSsEHgr66kgXoQOqRBItjLqRV4VwK/A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Ihxlx7yA1l36t1zmRO7hniLh59fYsDsfydS44yDI+xa1xaM7b+FMozvy+dfccUHrqIngKVWDvJHzHJIml0tSr/V6Ji7SEmnYwOYFIIfBbcM1Wz4LMhY3HxXfMQl4d35oqD2uhr3GnLk4IWZTVlr8My5w+5OeQqMOqsaOnSgwnH+0eErp+p7aR7gIGexwOFmEaegeyE2wePGjoB5fuZLAYv0H9HEsQW+RgCbj7zHxFqNo7ffgGg3aGvd5NgtIccn3HblzrYCoyC5FVF0cTr7GdskoriVhg8n0IutAvd5L+W2nKPbFR+a+AG0xCUYcqOk2IUJSKhxujNTpqcuq4onaA92ek76GCRNwqO5zPUNEga5xf4KyiAYQlBHtfshSG7d96iE4/Q3+zgXqrvap7b17nHCAeXcA9hKd4GZj4sHIQ== X-Microsoft-Antispam-PRVS: <BN1PR0301MB06447095D8DECFCF3FADA96D86B20@BN1PR0301MB0644.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(13018025)(5005006)(13017025)(13024025)(13023025)(13015025)(10201501046)(3002001); SRVR:BN1PR0301MB0644; BCL:0; PCL:0; RULEID:; SRVR:BN1PR0301MB0644; X-Forefront-PRVS: 08756AC3C8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR0301MB0644; 23:ySSMEOs1Zi/u6gmgNPGBbfD9ycaSq+mD4x6RJG9?= =?us-ascii?Q?ZAQegbkAlbYvJjOxamokz6JifgjM9uSgPuuuO7k6xd7iEzjRlQskh0U05+wj?= =?us-ascii?Q?rvUfTcHHi8FROd1bWsFYIUmx1GWyzeax46+KNlAsWfccdgo+I+xxXjxaR0XK?= =?us-ascii?Q?GDGm6+dWoZ349B66133OaWUqWK/L4Uwx3QdCbqklBUTMdYOlfGdNbWzbBNaY?= =?us-ascii?Q?s3CvucY5svBAB9Vx5xjCN11rJj5nnyHKpdBzV82Gm9ZeRI8ogEcJyMG9DbJ7?= =?us-ascii?Q?bKOtxOrcNNRFdg6bTELdE8GpZ1DVcVus20wQ9+dbgnvoOWGEZdvkicYH3YlN?= =?us-ascii?Q?bvJEhblV8HsTTLG/o4yOQSemHp+N+yojL8wGmqtq/6wkqavgB/gW5uCn8kqp?= =?us-ascii?Q?EK9kshBFBw8HPGCEF5MfLiJHw1OPTff6ZHbF4oFbEOid3bwRGzGvB3F25GkT?= =?us-ascii?Q?FUcm+2kpFT88E1qEzjE0dJeHXE2aHxtW91SgpAbMWBVnJRxSFgsF8G4/1p5W?= =?us-ascii?Q?saNHggAaW3HEQGa7N97tN24uhzIB77rw6tQz5hgA6zaBOgX3AskzUP09qvSQ?= =?us-ascii?Q?FF7vtTkNqXHNRZ7SmYP2TxXOyI9LbYThMFdfLJpveWTsi1TKA+XjJnSuXf1/?= =?us-ascii?Q?SdVGTsoMt4/6fKdzsevj7NEOktOFDbikyy5B98C9w9wyOYmJ/c26dX9lYzwX?= =?us-ascii?Q?F/boXtVXvt6COGrxgOAujvYHIIR8LL2HElw60AqBug4974wTZCd/WOADhFy5?= =?us-ascii?Q?pGuWqlOv9Cg5nS93MuAcjeW7FDr7B1mUlFqHI9fgmKThRQYMAK50kNYJ7Mm8?= =?us-ascii?Q?vefU7BpDCQ9RuUDMRAczx6rZ1j91462QGJCGUFtP/i7t5vIOkZ4xnlwPHqqH?= =?us-ascii?Q?Efro+/XZ/iyADVm/8pnWpnZYp9nALGGCBWiddcSrsvNZkdZVXbnW+MlNwXUM?= =?us-ascii?Q?Sg58TF7pOHw8Wjn/9kchIAWIeJKJ02imbG5xmh48zozfNy+aMTQA+N0ZTrok?= =?us-ascii?Q?ah6XtIAHo2D/7JrWkgsX/DHIiLiDWnioEh1DJWVIzrMKCvGodk+afX7qrEzJ?= =?us-ascii?Q?4nk3548JdBB3n3Imo1urUrmwZXlmU0R5wEVDuQUpEFMBmND3aYg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0644; 5:+3l2jKkbYFxKJA7w543lqDiK8PcKieIV+wlM27FerKqaKqdk/aIt3acfrL6KtTIPCawRM+9G1VOTZKl7WG2sUq6EtWgRLex2XyxMBBqJPOPxGVra4usWqANDC+zc+RIexeeqsTGSH8Tm1hisKcFEjQ==; 24:QBD21cWOJjcnzT8s6clKPjfGcGxyOS/H/OYWgIihHN6bBWLIsPIi9IufUpLXMjk7/CvW21wnMuarDlUYa4ayPlImIviUn3MxM+QsrcAgt2I= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2016 07:27:02.6379 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0644 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: <dmaengine.vger.kernel.org> X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
On Tue, Mar 08, 2016 at 02:02:01PM +0800, xuelin.shi@nxp.com wrote: > From: Xuelin Shi <xuelin.shi@nxp.com> > > adding unmap of sources and destinations while doing dequeue. Applied, thanks
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index 2209f75..aac85c3 100644 --- a/drivers/dma/fsldma.c +++ b/drivers/dma/fsldma.c @@ -522,6 +522,8 @@ static dma_cookie_t fsldma_run_tx_complete_actions(struct fsldma_chan *chan, chan_dbg(chan, "LD %p callback\n", desc); txd->callback(txd->callback_param); } + + dma_descriptor_unmap(txd); } /* Run any dependencies */