From patchwork Wed Jan 24 05:27:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shubhrajyoti Datta X-Patchwork-Id: 10181769 Return-Path: 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 C9B9D602B7 for ; Wed, 24 Jan 2018 05:22:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF35328831 for ; Wed, 24 Jan 2018 05:22:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A34F028841; Wed, 24 Jan 2018 05:22:12 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham 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 A9AEE28831 for ; Wed, 24 Jan 2018 05:22:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751138AbeAXFWJ (ORCPT ); Wed, 24 Jan 2018 00:22:09 -0500 Received: from mail-by2nam03on0074.outbound.protection.outlook.com ([104.47.42.74]:50112 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750992AbeAXFWI (ORCPT ); Wed, 24 Jan 2018 00:22:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fQoflDEO1IqJYAZ2j6kT5mcojJLc36NFKvthDgk1mSo=; b=32D4xL3MZ48sxRWRy2tSI2mtAzaRpJmPaVjI0pZ23trKH4L8uoeloFl9ziu3/co0JrkBYcpvTg4Ukt8vGloGYHf7ssBzjjuLZ/oOsBpB4I3aialV1uWJxVNXwHt0gMPPVL38KaKj/Pt2r05xoV20n6Hp50sfT9/uMQmJa9uz6W0= Received: from MWHPR0201CA0081.namprd02.prod.outlook.com (10.167.161.22) by DM5PR02MB3387.namprd02.prod.outlook.com (10.164.153.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Wed, 24 Jan 2018 05:22:06 +0000 Received: from BL2NAM02FT032.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::209) by MWHPR0201CA0081.outlook.office365.com (2603:10b6:301:75::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.444.14 via Frontend Transport; Wed, 24 Jan 2018 05:22:06 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by BL2NAM02FT032.mail.protection.outlook.com (10.152.77.169) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Wed, 24 Jan 2018 05:22:05 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:38277 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1eeDVd-0007MP-1K; Tue, 23 Jan 2018 21:22:05 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1eeDVb-00005K-Nh; Tue, 23 Jan 2018 21:22:03 -0800 Received: from [172.23.37.106] (helo=xhdshubhraj40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1eeDVW-0008V8-4W; Tue, 23 Jan 2018 21:21:58 -0800 From: Shubhrajyoti Datta To: CC: , , , Shubhrajyoti Datta Subject: [PATCH] fpga: region: Release the bridge reference Date: Wed, 24 Jan 2018 10:57:22 +0530 Message-ID: <1516771642-14551-1-git-send-email-shubhrajyoti.datta@xilinx.com> X-Mailer: git-send-email 2.1.1 X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23614.006 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(39860400002)(39380400002)(346002)(376002)(2980300002)(438002)(189003)(199004)(5660300001)(50226002)(81156014)(8676002)(63266004)(305945005)(81166006)(2906002)(356003)(8936002)(8746002)(9786002)(316002)(36756003)(54906003)(48376002)(2351001)(51416003)(106002)(7696005)(47776003)(106466001)(6666003)(50466002)(4326008)(39060400002)(478600001)(5890100001)(336011)(77096007)(107886003)(26005)(6916009)(36386004)(59450400001)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR02MB3387; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT032; 1:fURT3GwA20z3ebTks3Ldd1QQQ36fywca8ahJOI4YLbITkjDThzO42mpLj7Vdwg+r73+B2aMzMQg7RHn6rDf77nJRbRunM98bx8xx3lDrQw5hHdysq21B3rQXvFBe2JJ1 MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 951387e5-f100-4ebb-dc31-08d562ea68b7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(4608076)(2017052603307)(7153060); SRVR:DM5PR02MB3387; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB3387; 3:8e3tMwpDWVZQooSG4F4n8OGyufBp/IvsyJboN5fxKHTsR1HfVSyhEsqfD/AqpVfBGsB4tPoZ/V+oU8RsOyymOthVRPatckpxZX4nmq1O092NO00QtpEK3K+w5BmpjPFfWZuhMvI7BjS+giWG3hIzp4oqEoQHJeM1xxbtVsbD8A/wfX7A5WHLufKeKpVcV1/RnRxAiKvPi9HFw8K1KRycub9JfZMWKlSlhvqpUaEqElDTgnNCJBS4+zqZC152nqCkepVyGnYPV8L15HVz1kYnHQoJD5CKA8j4QOg0Rk++BbA0gaR49KXyibMv/WHvi2niQBfrRU+3uPP000JGEIXYcZELEIxxlAaR1HHiZOj3tfY=; 25:myD+5KscaLz2CYdaoBanSfbJ+yqvxfsiMhFY/j6W9nATe0RFVHIp4lmKiqWj384iuoLIDdGuuqaAwPOAeGwvSKyIo+obHMmrIQ7tpFcBkmf3GWxlPiah0UZVly+Ocf50jiDT2aTJurz3uSijTBMitNgvTC8zwdfpSnV569DbAeIxqX6wWmTCiP1pKjINaTlYwoz2LSJbnFk66n1BZJQ5g0/ujhmE9eE/DCxcwP1hMRht2FdlsgWqjKTLjhflx6I8J+HyvOU7r3pr/wju24hJmAb0nagJiSN03d6q0TQYueeO8R4ZaxIfQ1T2a1/qlGorYt3l6LASmDHoO7hMwY67sg== X-MS-TrafficTypeDiagnostic: DM5PR02MB3387: X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB3387; 31:H8WfsUdvZpsO0IFS4MA1aMC5xOVj1VUX4p3ZcyzxPGTcoAcUwIQsY6M9KZxrFnMC4ZZX1cFK0d+VSrCMhR0oYye5+d+IAdCpjD3ee8oFGS2ZBmzOzG6ws+7JqAli+n8Y28n9rkGerZDc5q+pIsJ7K04nirxR1b0TfARrmQQbqsP0Dga1x84KrN/NF2RcQoLysYhYKFEULTW8JpneW8a/wREaQXogvhyHCiy683sgnNQ=; 20:aOnK8Y4BJ2s2TPH8eNlRAXIdDXznCoc4cr/8VO0YwvGG2jHbc3OB/OXcgZwqIx19/ZwueCMGvTAA9WJtBLlVoRoYGcue2GHG3/kbUkAXFI51O+pTR+iJWmfUMzxnfB0c121HCEMvYNTSEoNuXfrijUSMNCN1knz8mjczib7vNZcdBqntxg2wGT4ORSQdtNJqsz8BSzuW5d0HivFvt6H7yU+XA2l2zIWmuLSkm7S25vs4k9WUYGin+wTRbA1ca+5a94XvidaJYrhasF/dGV80laLvxWdWID55lJ0Ba/dim4/6Or+IznFhw8M+w33fxR8g5Aa+tBB8lhViufwEuFjB54BdLjHD/5N5agn/DBLII4IOEGlBmvhO3Qg5n9N04bCyavFRIJ6SwvWbyCAd/Jqxgv8Np3twlH3wGjWsr93Bud+s7PJttD1bORZPzFRaPNMzl0U/Rr/v/8t/bHYlsE5RjCOUisk0Z67pPVUJ16vtZQG69wFKQ57rlfuGx8swedFx X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(3231023)(2400081)(944501161)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041288)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DM5PR02MB3387; BCL:0; PCL:0; RULEID:; SRVR:DM5PR02MB3387; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB3387; 4:98i0eKRYnba2r7Ouf2WVSvWnInHMxoHWAwABWjxHutDO/LS0mZgXZWWGWEQhK1T70nuGw+EHUvBYEp+l2CNDLSrJfZD8mZoy8wFiPVMaPXebEcSKZGEShReL3OayfCIp8wM/u6HztUKnrDoxSOEar5/ocC6wYoL9LMmlLpbs+e7WurhE/1017Fz4gxAuCdRIlGVGUaL3xpd2fuTOrPCAf9LDYyoNx2p/Os2OmSlVyDDySegB82BerrAGKRpIBlgcSRQx/xy5cNjNHOKfsNGjjsybuFYvS6aRr811uu5s5syhJ9DhCBVZ7ghntJIeLsBN X-Forefront-PRVS: 056297E276 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR02MB3387; 23:uOaO37CF/KbT71hGU5Zl3KgZwRzRx8DaDKCHHPrIB?= =?us-ascii?Q?ZDLhAfcNQKrR5nB+LcJ6/Y70383UXfPkoIR0gi92920bF1mrbT+I2NmQQLDx?= =?us-ascii?Q?ciSusq3/vgkXyE8kOX/0NKyrtoZW6AdOe6dFuzNz9pb7Qk9od+1TFLf+8mmN?= =?us-ascii?Q?03oWesZXip3IYzc95tsqMbEFgaLqrV0U2gDsaicn91HDCm8/g8Q/SnMOhvcc?= =?us-ascii?Q?Pv61u7SMwNVsb8IQZaS3YKqOKb7Pt4gz0sfzjxXDNpi/IE+akKo2SN7dBKzH?= =?us-ascii?Q?Hp2wvnJZ76VnU/ipD2Q64bSOyu0o5/pudjQG7rzGGkjWieJfWQz95zlFHyDS?= =?us-ascii?Q?Zn2KCoKhQURkrtwc24ui25Vd0pAom04sExS1SKEYgvy2VwsCKhNafj0IhI12?= =?us-ascii?Q?OVp5IiLwTRn/ReFlTAXBzdrJXwjgh2jLlsallSzANA0j2ipnUnK2Plzil54v?= =?us-ascii?Q?+UJVzanEhTTmkCuIhbARvT/3zjlQRrWW2CB2aLExymF0l/H7F7iEiCfbHmSO?= =?us-ascii?Q?oYCHPHt+dtaXcWui1/zrTvOcQzcX4k6nfEDJ7U4RHzhU5H8pWcEWEloBzSSL?= =?us-ascii?Q?a0zIK1fAgvxhu+yOgfhDsm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91oBtBAukYcdvt2l5Ftvn0GiKzrmWTHcgVcE8vSjOPBc8tjvtAvbHuieMhmpQYKd5rKFq0vwGKBBlhpH0rfgZyygZuLfmGqMV5l3lZCJ+53OR+GoE10cA85SIRmXVdSrydv9MA=; 24:e9ERhnEGMHZYhdph0u14Fek/qYBgufS4ijqyQSlCcX+thDKk/LTrFovIEeDu9X5ekUAhc+A6WAZ8N534AcSlxhzqWIdqzHdO0sWE12Yx39E=; 7:VV4XOrTSwBY+JwyP4+QRvceu3I+6ENv25MznJtHMV6xARc2UyqbVzW5zDLBqOPj20v/BaSjFBhlGrXka2EZEDXBlG7WuZPW0c7/oUlnrO+68Qk9hQwA/3QdxlyAfKQBbgZUqacujZUTWSeSxJxMHQFLA66MOKFDH5GmIsmNuayUBL8y9E7uBir+Z0yvcPnfcPMW35Zm0zTDC88gnjO8LkEHVGArPURux/ysUx9cJQUmwirYF50UGtpOyqawR5S+i SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2018 05:22:05.9667 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 951387e5-f100-4ebb-dc31-08d562ea68b7 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB3387 Sender: linux-fpga-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It is the caller responsibility to release the bridge handle. In the program_fpga the put bridge is missed out fix the same. Signed-off-by: Shubhrajyoti Datta --- drivers/fpga/fpga-region.c | 1 + 1 file changed, 1 insertion(+) -- 2.1.1 This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately. -- To unsubscribe from this list: send the line "unsubscribe linux-fpga" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/fpga/fpga-region.c b/drivers/fpga/fpga-region.c index d9ab7c7..58789b9 100644 --- a/drivers/fpga/fpga-region.c +++ b/drivers/fpga/fpga-region.c @@ -273,6 +273,7 @@ static int fpga_region_program_fpga(struct fpga_region *region, goto err_put_br; } + fpga_bridges_put(®ion->bridge_list); fpga_mgr_put(mgr); fpga_region_put(region);