Message ID | 20170802071320.28674-1-harunobu.kurokawa.dn@renesas.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Geert Uytterhoeven |
Headers | show
Return-Path: <linux-renesas-soc-owner@kernel.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 F32606041F for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Wed, 2 Aug 2017 07:15:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E72F528778 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Wed, 2 Aug 2017 07:15:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DBC1228774; Wed, 2 Aug 2017 07:15:08 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8DEE28783 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Wed, 2 Aug 2017 07:15:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751676AbdHBHOH (ORCPT <rfc822;patchwork-linux-renesas-soc@patchwork.kernel.org>); Wed, 2 Aug 2017 03:14:07 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:31809 "EHLO relmlie4.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751187AbdHBHOE (ORCPT <rfc822;linux-renesas-soc@vger.kernel.org>); Wed, 2 Aug 2017 03:14:04 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie4.idc.renesas.com with ESMTP; 02 Aug 2017 16:14:01 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id CC0FE69F9A; Wed, 2 Aug 2017 16:14:01 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.41,309,1498489200"; d="scan'208";a="252161971" Received: from mail-pu1apc01lp0021.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.21]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 02 Aug 2017 16:14:00 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=EoQMASyaI7GyESDCb6jQoofjIzOxx0CaUyxnzceKLDM=; b=CIVIkua1rtyiodnuzAo4sPb6unK3nOzH3EG1aA7vmMB8UIbkObVVL5gI3qiY1AgxhlBYZv7mS24FszGudh1SvUvZyL2TGL3VMgUQuen6KPeNTF5ZDtQEHodhe0oNj0pYG5wYD00dTtT1oc92cn9RpxE/f8rqR8446mkBNQMy49o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost.localdomain (211.11.155.138) by KL1PR0601MB1462.apcprd06.prod.outlook.com (2a01:111:e400:7911::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1304.22; Wed, 2 Aug 2017 07:13:58 +0000 From: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com> To: horms@verge.net.au, bhelgaas@google.com, linux-pci@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com> Subject: [PATCH] PCI: rcar-pcie: Fix memory leak when no PCIe card is inserted Date: Wed, 2 Aug 2017 16:13:20 +0900 Message-Id: <20170802071320.28674-1-harunobu.kurokawa.dn@renesas.com> X-Mailer: git-send-email 2.9.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: KL1PR0601CA0012.apcprd06.prod.outlook.com (2603:1096:802:1::22) To KL1PR0601MB1462.apcprd06.prod.outlook.com (2a01:111:e400:7911::28) X-MS-Office365-Filtering-Correlation-Id: 0da1f798-ff65-4d8d-9b2f-08d4d9760ba1 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:KL1PR0601MB1462; X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1462; 3:rj0INOKgzRb5km9iAINsJFt6Sf7l0KQ4cWXYTiGMTNvh5KON1NJEmLXtyyp8M3isp3fKPlmLtz7+QF/sswf5QSTJb9KBbL3RKcaCuWPK19kh8hKB06tp4MGzKdp77qH5RWWV+f99Ax7Ym0cVIlTNiNDEDM0QKoB36Wu6qhj3Z8DyK5k+5x4wGmzcbU1x7aPjJGICxRAl73nK9H+zgy3qYxeazHJAa4UuwuzFDMTt2Nus82u9w0NDsrmqm+o6zZlgwN0y3e2qoVrxU47mXAJC8bhDj2w1cm9dDgYLpszvmgMAsj7zkrl4ngUykRNxP16oHK4USXv32Do8xuG0oVNWzypSkXAPxDMUt2qGjTd+DShRy+ssfEhGT8XzHwVuHFpitCcVqxTLDQkd8Tu1iCXiP3/f4bIXVsekJB+WonSoeAvl9o3xSF25a44BjD7LF5NfKp+dR1u4bdWF/M5209sqZ5SfeyF5FxGNNQfwdkScNcOqYFxGMEHm9MoEc0hwHICZWkrCOSFRHCKt5mvqYTttRDon/R8EKbMYW5REn1F0WrLPlF0pk2HTGOZ0a5LrprfU46kV1uhHMrMtY5HQwz2yVzNV3gKaIVKhd3H43dloZlwupyfagXLJGAmFzOe1HXi+gYndVC9jTN0+wYbxPoHMwNq3IGdYExwWNT7X/68XIgZJzj1TlRwrcHaierCdcWVcSl9JLefViiSg+chQi0fN3qDITeeLZc8iIEzfaBR5hLXuEw3PTH1peOvql7D9OV5WYHWh2kCP7QF+lTuwNQCumjXD5NlQBsFM6yM64paYUAs= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: KL1PR0601MB1462: X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1462; 25:rGw29zax5OQNtwMUEj88DXy2M2yEPx9FlX50YWEiLPH2XYaln096Sc0L3+NNPR+iJUZUH+5Pc7HpuNjqvRxKiYRwD38z5vlxQdjrpNJbQHZpP+ekgSk8j1dU1oavguhD1bRDqYyss605oT5/EdlB9c1AhFt2ZkxCFO+xUhnz6OzawGpdTRZSoGwSUqKkuepJZ6ro0HirqIY8EN2gFSNKv3xxUPWkaDqB71Ko1xa8P+7Qpfk97kNVXeqyHruNTgNB0Y5MA5NeSE6OubjqMF5s7RIRrh1++3FkwYqTl4hqeK4oMrkNLzZmJsnjLNJeA7BlyEWpGJ1hN/OKtmGKWYGuqZcoFYzbuRtqDQKt1DcxLAlXm+YnZhYvJXR3OicrHoY4Nh2a7VxLc0GcTesMW/hr69LibmlWT2LRSUxe/hpUDVRj9pXCywsnxWuSmFYskE+DNv52Q2gIZLX+eiVevLlgvEoSrJIxMjGI36ohmSXAQpLWI+J3zb+CkEuTpI1E2x2Zur2IcVoOBogf9qBeU7JerXkgEszRqXozD4LRfh+lcAA1alyfBR9VzftGim8NhNu9M5HHVj8CVXCmjdtD0BUOZeu/dUzx8elGTn+mt+NjOF+XJP+kuG0dhRqhcUbOYAd40+D82qhl7rfY+U6hI9089wuUugo2zyHz4P+YckKhLRlBDq5n74jp+KwHGljgp7SVDhXqdckcHLABSPLRbRYcvRozPu/vwkOUrS9ePeLewm3bQgkoYK8UnRlCyht5tAJ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7kiJwn47I1NejFZ+mypRiNXwDK+t93cTV4Y3qbHBfhTBEQ+825btDT86VLLYzy+SnsZfwAPDPbDVgNXm7/A8fCx/HN8dRcC/13SwWSOoGgckJ1QNx1QrJ+2NRY78mJU218f1aZRrOudeEed2RQPFktOqj/4K/Hh4bLBNqBSvKyJrxrwpEcED/cgMTo9f3Yirpw5yb61hXfZDLjxDggvW3+Gzt4hVL4VClevypLCxFqFkcFDoZLeTHEnIq6+iT3tseqn6JcdT+peo/shpiMfW/EioGzi/JKPrvjng1HJgLFUrtmhTGlpJAw/HEfF/Tyh+NCz6xI+iwsuy4jvoRsn7iVcrN+PaxfUnp/KlKexCb+BUe2t1LxLFirbJHld/P9dD4B X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: <KL1PR0601MB146230403924AA5623C52847B8B00@KL1PR0601MB1462.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(3002001)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061750153)(20161123555025)(20161123558100)(20161123564025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:KL1PR0601MB1462; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:KL1PR0601MB1462; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; KL1PR0601MB1462; 4:BW1uqMSK15/ZA2gGRHotBr5fhSH3op8PJzu/XMY7?= =?us-ascii?Q?OBxf2vCtpvSw9hyk1MpPciU+I34u+Rl9rCejOuBAEcwNk3L9OMOS08Dz/F2V?= =?us-ascii?Q?gZX7uJZ+pbGKwcd6+Q0ol3ozpANWY7B8+s3AaQToiE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gaPgPUKIZA27VN+GXPb7CtpZKRZhkQ1XEaJPHBXFivECXnlIc8PSm?= =?us-ascii?Q?42H8ivzy+Y2XGXnd9CDZfh5gUye9ZexLS2fVJsrBWGQzu2SUGBs3aJ6kb4oR?= =?us-ascii?Q?c+fQ/7LpV/4SIyRaDegC6Rd8sWRReLUw?= X-Forefront-PRVS: 0387D64A71 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(7370300001)(6009001)(6069001)(39450400003)(39840400002)(39860400002)(39400400002)(39410400002)(39850400002)(189002)(199003)(2906002)(6506006)(68736007)(48376002)(50466002)(47776003)(101416001)(50986999)(5660300001)(1076002)(105586002)(66066001)(25786009)(6116002)(3846002)(106356001)(53936002)(6512007)(103116003)(305945005)(7736002)(7350300001)(42186005)(110136004)(38730400002)(36756003)(4326008)(97736004)(5003940100001)(6486002)(107886003)(189998001)(42882006)(81166006)(78352004)(33646002)(81156014)(8676002)(50226002)(6666003)(498600001)(3720700003); DIR:OUT; SFP:1102; SCL:1; SRVR:KL1PR0601MB1462; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:0; A:0; LANG:en; Received-SPF: None (protection.outlook.com: localhost.localdomain does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; KL1PR0601MB1462; 23:uI1k6nuOy5BcqS9KPjvcxiwbu6woxiEpk/FjLpU?= =?us-ascii?Q?slag00GihVr5zF0sVp6C8AAXY7W9+SuWOuB+8q0gB8NvYok/0ls6g6MUfbUE?= =?us-ascii?Q?Trz+zn6UwQVfMIu5ZLeaoxRWFv1HeFvns9QBF+FnQOSUoXEu8CPH4KlEWMbj?= =?us-ascii?Q?OKFkqoePLCYsq+0BE/5xzqWwGA9dBFNxxbrMPGu9REj2UmnYgO7ZmDHqjsvW?= =?us-ascii?Q?UPsKzVhXlX4OaArFrs8ecaAy3beL9PPF44O5V1lnpX+FwfPwGmnPX22+pz9Y?= =?us-ascii?Q?o0T2QEfemks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-ascii?Q?17QKt/Zr2itdfPwBLmlX+1SCWTV17Quw0zSuHjW/hB+RrAQpTHbVHQAMMgv9?= =?us-ascii?Q?+r/SQxUidvE99i4uf+DIKP0vr/09PbHuBmdyBb5KQsVmuFNg+YdYThpuMbIy?= =?us-ascii?Q?PmiV8PzD8d0+ThCGlXPA3WFikSSSeXyuCgKw54G2PfrL1?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; KL1PR0601MB1462; 6:NV7ToV/JJs1hWpKHeBgGFpSKnObTRgmmp6+i8rE0?= =?us-ascii?Q?TL+L/cCteI37lnl7id391aRmet6mqt2oRgZTcBl+bmQu23Knf14Y/ZJjJTAI?= =?us-ascii?Q?9HMn4IrY9DaQTfkKBGjJ/6adLQysGP66vbXBW4QA23SHgOwU2HKzHFLhlhtw?= =?us-ascii?Q?R0AvY+/BRQ2kNRlaI0G86GY6IG+4E41HP0g97znb6nfGwIlVPLZNXu5VAqyj?= =?us-ascii?Q?T81AjmKzT1zvu8SIKa19NMv1yhPDvmwF4eN3BQonRCp6qKM8H1yd1DaEdnFV?= =?us-ascii?Q?8blZajJSc2gl3UAapASpUaTMvhHMoCKEXUM9je5xtNBYVl/srmRdAjXyDeD5?= =?us-ascii?Q?A90/dcaidMGVtOxUt5tZNwHWsNjnqJAz/6kBOr6iiQ6xmFq01wxXz1j1zux5?= =?us-ascii?Q?6obSNYujTDxXf6V+vqozZCAnUg+/ZweeQpuh1ryNjYe8NdrAn2EwSGc9UAko?= =?us-ascii?Q?8wguaHGB2kZ0d2sxe1Ovt7mhqCriZMuQTq5U0MLzHGLnLmMuTxQyJCT1h7Hb?= =?us-ascii?Q?tde7KCZum8YOLiEn46tI5LDy6K6UZJJJWlE0M8FBe9fBeFOJ72HqMckkMRYU?= =?us-ascii?Q?/ypDC+0FX7nPaY04YfpSpCaM+sjhX/v7w485ZbdsLs7iIzcgt8tUjqoTvf4V?= =?us-ascii?Q?3S76xYiah127yvPuhbi2KBt+W6hP2nVT8biBJ9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Us= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1462; 7:/TkP3fnI+9sSTYgIgzc1eZeXAHqa1yYG6U0vHFAojp6theS87xIkxiE8qXSCmmWhc1Vvb/OEHbZq8Ty62H/6tK4+E9y8ZA9dlueay6jN8aNUWBG2N72Dv/ydaL7ZiRj3W8RsWYF0uIcJPdb7VVWRsiEmcEnaCY1ZjKXOUvlCe6o8x12s1TV/xXrXhrQ7pKPiTg0eRfXbpc0b0gJJoYk3u+a/GtS3OjKh1sGZ5nJsLamjo8fHKbrPZHgB1GT4wvCECEmAGLG+WDyU6NlqFugWtB+i1L0+00Rb4aFg9V/0c42BZpoF6iTJRjvCjtm4yWrGg99Cfvz3+catPkVQV8s0DGGOPxqW36J57Gq3JzGb74T8hB4bNDmZyvEiW61juJdwOVAbT5hyk//C0bF/AyAzx+kz8sljWf9l0Hae68uxXgG/sObqG74xwzC4+1TpstYx8OavXS0JnY4B/115L8ILyopd9/0cFxL0IO9gG9desVcMd+5DqGnwiDXX6psL3UdRMTaxxai2Hpv+fbVesEzIseJhVLYvW31gYFmgtLHEqFL9/L/VvS+jqU/y1QAk1tydBeQDdnXPAd5LgxIafitktxQjrngW2CoEq3u/XKGWIhQR7bi43Z6ZuY1HVxI1ZyDYMWaXOFaPHKeVB6hr5TQ5NfcO29jzxMACL9h5xG1qQsJjh0tPz6QG+hJtvLtgZuJ5jSQ/+h6swF3b+rquYFuMYfsnIp0kBg9yrIfv9885zoJSzNOhh+jkkdoLwzlbE8cdyZpV/QKt94vHkmgjwGWkAUyg7d8Rn/QhpJzVjLVWCps= X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1462; 20:yVbZukADUiGBIt9v2V6lNque+nMhfk//6bpLfvihARQsQJw7GXTNnwqcN77hbZafkfPZjlnxMf4gIvk84RYh+b9yV6EaFpCmfQ+MpJ3kztspTTb1Fhw/aYzsYRJvVaDH/1PwDzqGkuH26LWe7Zu6s/a3ZE2fhUYZRgZldXOlunk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2017 07:13:58.3559 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB1462 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-renesas-soc.vger.kernel.org> X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index ac80fbb..9b06de6 100644 --- a/drivers/pci/host/pcie-rcar.c +++ b/drivers/pci/host/pcie-rcar.c @@ -1190,14 +1190,15 @@ static int rcar_pcie_probe(struct platform_device *pdev) return 0; -err_free_bridge: - pci_free_host_bridge(bridge); - err_pm_put: pm_runtime_put(dev); err_pm_disable: pm_runtime_disable(dev); + +err_free_bridge: + pci_free_host_bridge(bridge); + pci_free_resource_list(&pcie->resources); return err; }
When no PCIe card is inserted, there is a memory leak as pci_free_resource_list is not called before returning. Signed-off-by: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com> --- drivers/pci/host/pcie-rcar.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)