Received: by 10.213.65.68 with SMTP id h4csp2116692imn; Sun, 8 Apr 2018 20:07:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/E70NiDYcgo0ITdYGHjq+UbdukoVbHjOZPecNE8zLQQJOEfFUN1Sg35Bs2BwgD+A0hC3Fc X-Received: by 2002:a17:902:aa03:: with SMTP id be3-v6mr13943355plb.299.1523243259538; Sun, 08 Apr 2018 20:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243259; cv=none; d=google.com; s=arc-20160816; b=M6gi/csyDytYbWonTUhuG7HnB2UJlb3BUzHfbR2VQkAH68ubOc1F+uF6FsM+pRgwQ3 f+nt2glMXK8tKzYqmRY9rIKW6nGQ/aKgE+nyJ0gvQUNiUeHUHuimrhWDkMEnuGkaHn5p ZrE11HSTrCpQl1MPtyTQMYph3Dkone75DteWPihrHio7gou2BvLQFrYXd6bS50fN+gYk oi2n5po3SyUrcF66i3LZ+3Gq93NEwFI4xKfKbw6zJdgC1Br4iLy5C4HAf3AJDAlzifEj aHybKdKkBy7JIy5DtLHAxiDmpIVdpR+z43A9YwcOfqvQl4Td9QhV/B57JiRhI5hdiFQQ E2Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=ByNqUA8N4jhcly1Xe5ElbCvV+k9Gz6NdlhtWxSbc5og=; b=LcYghufQJK7c5TG9wTK+5H8EUvRwvs3SW6kzcpVHDJOcf42azcJj8G9C+bOeiQDvHo ux+nKX6bsvvsTMEABACHnP/9UeIKCj+izJX4FPNMK8+QRNFuscHbc0iolYTSFRRMGjqF WrMUNEwQYr/8ghRQJIoxvXNS73CdXqbX9qCm3M/p8so1eWIoCpiA1jwa+NeWbIEjf6Ci VGTsLEHy3eA5W63r+ZKufYn2t6pxbMYTMH0r0NTSaxT0ju/mvNRv2qOB+/Ns51id1FQT P+htc78hlXX6cRSgr+QbebIJXvJ1DIc+SJaGooJunwNk4jd9FEXh7AIgOU/tgvVPrwM3 /Ing== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=W2Prb3+e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x17si5122751pfk.288.2018.04.08.20.07.02; Sun, 08 Apr 2018 20:07:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=W2Prb3+e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757324AbeDIB26 (ORCPT + 99 others); Sun, 8 Apr 2018 21:28:58 -0400 Received: from mail-cys01nam02on0100.outbound.protection.outlook.com ([104.47.37.100]:40736 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756659AbeDIAgD (ORCPT ); Sun, 8 Apr 2018 20:36:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ByNqUA8N4jhcly1Xe5ElbCvV+k9Gz6NdlhtWxSbc5og=; b=W2Prb3+es/4Quq4NBunXfrbtwPhKnZQFejAjiiskd78IQ22yP+5je3lLCh19AnYxxdooztDTQ2f8FvM37d3pOOdvzYvc632CU2wwUfVGPCbugHSvpZ8LLttYyQYFRPKggGbLYAPcNbEbT8ML+Gyq6Rw8gaIFa9oKh2cnjmPXHP4= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1015.namprd21.prod.outlook.com (52.132.133.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:36:00 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:36:00 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Phong LE , Neil Armstrong , Ulf Hansson , Sasha Levin Subject: [PATCH AUTOSEL for 4.4 051/162] mmc: mediatek: Fixed size in dma_free_coherent Thread-Topic: [PATCH AUTOSEL for 4.4 051/162] mmc: mediatek: Fixed size in dma_free_coherent Thread-Index: AQHTz5moirC5NnrsAECwVSVgAoICgQ== Date: Mon, 9 Apr 2018 00:28:19 +0000 Message-ID: <20180409002738.163941-51-alexander.levin@microsoft.com> References: <20180409002738.163941-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002738.163941-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1015;7:URBYvWQCh8XH5ibaYRYRMU//510jlEm7QfvzniqoWZYAXi53DF9WAolzNJ2bbnNwG/eKi+4/Cq/tfjVRqgXMQYwJxBce8gxrRWxX1U1JtJt3phNpj8myAFlQFXMLiGYL5yNOEYvezuJqEvU8j9+KmztJGWdxynCsa2fIgvMtqRNhwAEOd0/lasI8lbNyQ83BzHJqv3ZSsv1uizwI6mKGW/CjPuFo5J9MF2x43qHwfC3aSVpe+xW+mQW6M4IimuAT;20:hXr5RmO4qbbhnlAuvEnhAcPhUt6SSlFvmZdoD7OUYPVcFzqflHQ15R9JEfJI0nmtqT6AFi9ZKSnzfR5R/yHm9XnjdQzOVb5FYYz3f2tlTszoJfTzz2CgGh5eCo9164mq1xx3dcUKu9MU0eeWFtp4Xvi4WQpmX7HmCVG7yRaG6Gc= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 2c585b71-b4a1-4218-8b20-08d59db1ddf5 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1015; x-ms-traffictypediagnostic: DM5PR2101MB1015: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1015;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1015; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39860400002)(39380400002)(376002)(346002)(366004)(189003)(199004)(53936002)(4326008)(478600001)(72206003)(3280700002)(2616005)(14454004)(305945005)(5250100002)(3660700001)(2501003)(2900100001)(54906003)(110136005)(86362001)(1076002)(107886003)(6506007)(36756003)(446003)(68736007)(6512007)(7736002)(486006)(2906002)(5660300001)(6436002)(3846002)(86612001)(6486002)(66066001)(11346002)(575784001)(476003)(6666003)(59450400001)(26005)(10090500001)(316002)(22452003)(8676002)(81156014)(81166006)(6116002)(105586002)(99286004)(186003)(106356001)(76176011)(25786009)(97736004)(10290500003)(102836004)(8936002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1015;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: XHRzJxoaaviaIMR/mvHViYe3qCvLAJ4NyJXdhhzWbEedi7EMrX2t6rfFc7BNJsP5keWMMbXby/SMgv8yiYZAGfVEg1AIeDEZlarbUUKXzpIFvRRA41CuGTScpoC8jM1KhWD4GSKI/C8dKkNjbN/uqAfA3dks0CMk+9s2yhDHB1RyZ5PFxJXjwHXwfAOhQYy/t0gvmyNmwfTzoyRpUI5c3LVCEBVLyk+nfLDMHkWtG4yfD3blmy9RBoRCrFDI0X/YdD7yof0iwwuhdoZhQ3hz0ay6Sch1VnZFh1YFA+NSiVrmINxWG+Esr2twkSW4eWbe1/5/+Q6UqB2ZjN6//NsDOAR3bStzvQSkIJiWaICF/9U/+rYjNoV/D4yY6NfMMuWPTAVheRg4xVNVwEvW1lBCfp7KlTPo61MGeMdGIIiT5W0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c585b71-b4a1-4218-8b20-08d59db1ddf5 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:28:19.3487 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1015 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Phong LE [ Upstream commit 16f2e0c6ffdfaf964bb0a6d5e67253a1c8116f0e ] The dma gpd dma_free_coherent call size in invalid. Fixes: 208489032bdd ("mmc: mediatek: Add Mediatek MMC driver") Signed-off-by: Phong LE Signed-off-by: Neil Armstrong Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/mtk-sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 0bf0d0e9dbdb..f701cbac2061 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/drivers/mmc/host/mtk-sd.c @@ -1626,7 +1626,7 @@ static int msdc_drv_remove(struct platform_device *pd= ev) pm_runtime_disable(host->dev); pm_runtime_put_noidle(host->dev); dma_free_coherent(&pdev->dev, - sizeof(struct mt_gpdma_desc), + 2 * sizeof(struct mt_gpdma_desc), host->dma.gpd, host->dma.gpd_addr); dma_free_coherent(&pdev->dev, MAX_BD_NUM * sizeof(struct mt_bdma_desc), host->dma.bd, host->dma.bd_addr); --=20 2.15.1