From patchwork Mon Jun 15 23:52:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Victoria Milhoan X-Patchwork-Id: 6612481 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6AC94C0433 for ; Mon, 15 Jun 2015 23:53:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 97BA7203B5 for ; Mon, 15 Jun 2015 23:53:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9BA4D203C4 for ; Mon, 15 Jun 2015 23:53:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751953AbbFOXxO (ORCPT ); Mon, 15 Jun 2015 19:53:14 -0400 Received: from mail-bn1bon0140.outbound.protection.outlook.com ([157.56.111.140]:12000 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751397AbbFOXxM (ORCPT ); Mon, 15 Jun 2015 19:53:12 -0400 Received: from CH1PR03CA008.namprd03.prod.outlook.com (10.255.156.153) by BLUPR03MB390.namprd03.prod.outlook.com (10.141.78.19) with Microsoft SMTP Server (TLS) id 15.1.195.6; Mon, 15 Jun 2015 23:53:11 +0000 Received: from BL2FFO11OLC001.protection.gbl (10.255.156.132) by CH1PR03CA008.outlook.office365.com (10.255.156.153) with Microsoft SMTP Server (TLS) id 15.1.172.22 via Frontend Transport; Mon, 15 Jun 2015 23:53:11 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11OLC001.mail.protection.outlook.com (10.173.161.185) with Microsoft SMTP Server (TLS) id 15.1.190.9 via Frontend Transport; Mon, 15 Jun 2015 23:53:11 +0000 Received: from stc-hedley.am.freescale.net (stc-hedley.am.freescale.net [10.67.70.12]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t5FNr7p5003741; Mon, 15 Jun 2015 16:53:10 -0700 From: Victoria Milhoan To: CC: , , Subject: [PATCH RFC 10/11] crypto: caam - Provide correct value to iounmap() in controller driver Date: Mon, 15 Jun 2015 16:52:58 -0700 Message-ID: <1434412379-11623-11-git-send-email-vicki.milhoan@freescale.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1434412379-11623-1-git-send-email-vicki.milhoan@freescale.com> References: <1434412379-11623-1-git-send-email-vicki.milhoan@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC001; 1:NFrBAJi2TWDar34j7L1j/4V4djgq+kUT9cXVdZud05kDezFoauTdH9H12bndZka+A+Puqlt0S/BJvYofM9uabthWiGitFZCargx6A8z4o4u2/Zg4tWYsK9uEjdQxCMZLUOtgRPy8jqg1FxBmaZYcDmGLYrVR96ydauRipg6c9AXd84ZyMa3oz5Ugtfj5hcyAvTiNC2Htf+N3BrYRzKx8t2m662UbtH5nxeF+hJdQloUxjTEhDN+R7EB3M5KrkHrM3I6Xm888j8/x4ChUizzmihvXGHOaBnQxB6agUME4hOqndlD38KWndL3XgDN1BVAJu6Iwf70QdUIKYuJn6x/eWMQdCF2h8/oD+HhmZvXPx8w= X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(199003)(189002)(6806004)(50986999)(77156002)(33646002)(2351001)(77096005)(105606002)(48376002)(50466002)(87936001)(19580395003)(76176999)(86362001)(19580405001)(106466001)(62966003)(2950100001)(92566002)(85426001)(5001920100001)(5001960100002)(110136002)(107886002)(189998001)(50226001)(46102003)(229853001)(47776003)(104016003)(36756003)(4001430100001)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB390; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB390; 2:tUhpEXnGO53EFgxoKCe7V0ba9bEO/wMOrtXs2oWSlQiJa2FOPPfj9hQhFxdcR/F0; 3:m7qitbO97Kof2qopnnAftXW2Vp0azrOwWRWeG12/LcJsUO83ploSMDOjkx489tgYbN3lvSwQqagMb6+xAOd1fR64EohFmIpaeUn05R3O3n8ZjuvjuMk0720uZz6sedv1EleC7VpTCUrN3XSehwpJNR6WFU7CACvH07NVTa/LnbeJYTnx0NI6wgCVzxnasuf/4u501MSefNHQYI9ZMVxhWP01andCsr+WxkRFmF4F+L4=; 20:u1HU+TFAkJsRG/FCBrYG4pHcs3HdfL2cMjtbtEerbF4V6RdRnTkcO3TC2/zDETpS9gxFKDoaYGvKV9RQOH4AQfdnKW3CaocRUC8sbquhdnck0u4ZpMbniYkQMTsAt5w5WFb4dC6JUJ6bADJGaW7Z5sSdXqd99Wza2wUcX7Ejh2eE/zL3b4KDZR3rooeWFkFkN8nsmhA0y4lkRE27ECCFP37lhZpp+84pRPU29xeQ5fIcWZRxn+b13WCdRqRgcqFFdeZHE+XvongeLhFaKG7j617Pu+PvYMOthDkKtnN1Y7Z5oCZHhuhp56TroKvbASeD8aqN6aRui0c2qZbep90dbjbYg7smVjniJ9Y69SVYV04=; 4:4O/wpTS70UTDamQcfv9HLD84UYFxQzcSmK1s4AECKqjexGZqQ8Okz+y+39dR0wuzll+OpJd2T1yXdDne1DvKZg4vU9z6HLI+a8KU+7cuiMoBxiNvn+wsBHQaayAPYwXzG2Gec1+QAXDv0Lg3oAIAPaeYfqoQNRv5MZKNcwzz/Rq+py+LSUqXWfIA5DACzjH3iu9gbfsc/QVd6j0FVs9fA5zzalz5SQOiY9dSuIJy4Mm1tb9X77Shp7BUa3nh6oWK722RY9zrH LjXTNIZWvwJ+JsjvntMP94TJcReWWByxQo= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB390; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BLUPR03MB390; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB390; X-Forefront-PRVS: 0608DEDB67 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB390; 23:3gN+A+xV/pne4bd1bLNdUqUgOkzlHoH/O7qiuKoVhN?= =?us-ascii?Q?DUe7eQQkEKSdXygvsHpmmJV+m5id/kc/LFuim501l3oi5GC65pUSa8MMICnH?= =?us-ascii?Q?NedIAm6ZgG0MAtRJHCgpD3/QrpuOSCnNsOAIYOniSs1UpPGx4V20ikn2x8XX?= =?us-ascii?Q?SYB2pdsuLZt01KCrTQ6AL0y07i77NxYOmULDb6asjJoQGXPkPp/nlBXv0jWT?= =?us-ascii?Q?G4eO/cfMcZQNEgh2uszce+/6dHQUChNCzGMcKPRzOMh+DvFat5S0PspA2uIb?= =?us-ascii?Q?adA9ZIMCw23kVW7Ypu9cBrQf3NfO/clxl/+C53lVzslECDIvuqmWXNeTnvTO?= =?us-ascii?Q?sgE5TbdT6qQt6q9r3g1zzzr+nJAUwqPxb1RXS/MSlHaV0/dyuCn5H2f2nfiJ?= =?us-ascii?Q?N/O+5aFIJw0qVj6ERhY3WEebB+YL2R3a2lYLpiYRqpJBgBiMqhcOQqn7c/aH?= =?us-ascii?Q?XqHO4PaNF+mxMba5tJLJWZj79Ct2LDNF48h5CtKSG1cgcwEFt9+TazXAlZFi?= =?us-ascii?Q?qZ+K/oybsBP42ivBMYExTPPp4rg09hM0dXgsuW0owgNnGdp8bvw0amjQ005o?= =?us-ascii?Q?KkKpnSUQacke3+fB5wRYC5fiHpi70ovGdFnuHRbP5Kn1WLRmRDvLbZ0NT5Z6?= =?us-ascii?Q?FIZxbqQd+7saqIG6t9OQl6MQXt9aqed2icqgA5JJL7ghdHOMnry8nvdFqoFg?= =?us-ascii?Q?1dfW+uqx646xoBf62Ue8nWb1pQG/YNuqut7JABP/9DLS7ogDJPTmUqIbRt6W?= =?us-ascii?Q?v7GoH7sr6ISlgVfNh2BMnNC0auc9ptJFT5YPE4e9XcL2UCgBgFQizkKO6TtQ?= =?us-ascii?Q?aRF83b5CDQc4LOLqIoun3z0NUIC3G8S8sMbqES1h2/pLfHo5PbQN5/XnGz3X?= =?us-ascii?Q?SvAA4x5zplhqKvWY169j9TUu8TCsFhaA/R2VN8p9/ZL/5dbo8anwezGStQb5?= =?us-ascii?Q?/bnxMxMs0ziqj8+kkjQENGJPwmBMUsWlzmBLn6zQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB390; 5:WB/dpA5oUjkTQseFLU1QFpbqJq5bJC5gTk6WJprQDyxgvQYF9zxhUD9AW8FH5RfW0Suza69QPBOC9eZnUceBPKsXzqNgHiFwdhSwiBB6B/rXrbHBCfCEhcrJWic89bKV6Oc62jMyK6NEs0pCl6mECA==; 24:Xk9jpBHl7sr+CNqQFHU1cj6SRZAWC6qS6b05wi0Fh40xqelmNyWXfyJP4RF/qYvb1Qbk9h+yDKv9JIJy/fIeF/MF8HPIBaA+MtUHQ+L1yGU=; 20:VqLmObLFKwIYC0vwO/uM5qyWZyvcu3whqx3Tm8BQJNEHdUJ4JdJqTTD5LVjt/++iUv5vc+bs6rI9NI2jP6IkxA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2015 23:53:11.4966 (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: BLUPR03MB390 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-7.4 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 Fix a "Trying to vfree() nonexistent vm area" error when unloading the CAAM controller module by providing the correct pointer value to iounmap(). Signed-off-by: Victoria Milhoan --- drivers/crypto/caam/ctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index 3226eb8..8a4b239 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c @@ -301,7 +301,7 @@ static int caam_remove(struct platform_device *pdev) #endif /* Unmap controller region */ - iounmap(&ctrl); + iounmap(ctrl); #ifdef CONFIG_ARM /* shut clocks off before finalizing shutdown */ @@ -577,7 +577,7 @@ static int caam_probe(struct platform_device *pdev) sizeof(struct platform_device *) * rspec, GFP_KERNEL); if (ctrlpriv->jrpdev == NULL) { - iounmap(&ctrl); + iounmap(ctrl); return -ENOMEM; }