From patchwork Thu Nov 2 16:03:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 13443945 X-Patchwork-Delegate: kuba@kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B517D1D559 for ; Thu, 2 Nov 2023 16:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=siemens.com header.i=@siemens.com header.b="aUOdniCW" Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2050.outbound.protection.outlook.com [40.107.8.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D2668E; Thu, 2 Nov 2023 09:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Eu9h0oThXc1mtB4oVaAWTVDEwiZX0xR2wD1sH+VmCv8EOFLKRlZ1NdIM7PUsQnOUBqD7v6xgD5Ni2jszsOxYlAY4ATiMwxz4mJl921RJ05P79/S3jxbqzS5vzkSGYTRPKxd2ZCAJSWUBrzJAR/lq2hj8yYUJ58UpQ4VlD7Ob5kLHj2/Yj4/Cfi90GU7U/ZsUBE3+Wv82rMmSXYjufIHjWXJ24ZZleIv812HphXqHiGGdt70zeRlA6B8nW/oENOjTejHLHkulhv1BUVi8zpyBsbv/hlm2oVvCC4gZkob6lRmdu4857y2KnKJcD6UprBUf2ooEaPuhBC+P7SQ4/82YOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=x+4VQRknpttP0AycKsosOfeASDoNhaMJvH5V0cmo7Jo=; b=PIoBCcJG/6A6otoULdo/LoAnLzi8ZZTOiHLLDE14FMWyB/dZAPxY7mWJ6Sy2Fds48f9mY9466xn+9MnRna4h9lxNvprQmmBoet7FbXpq1YX2dniJu9mbuSZsWUZufpEgkX4U9EXiQyK0xNqL+GJNnh7yvKmhCTIpEf9YSvwY1hutbu66P53JlwqeXOC1ByNst3K1xLHYXcETrNlfkrGu+c3J0ie7/tNR/T6tsJ+Q7gP6Ou/ixaplDXrtjd2eQStMEvy9hj9UFkvJRISDI8qXsLZbzO3b4+WlOiwibUNf9Tvh2Zz2+LxWGsyzoxck5H+pWSFEMUHKjJJnwyKj7MfpnQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x+4VQRknpttP0AycKsosOfeASDoNhaMJvH5V0cmo7Jo=; b=aUOdniCWB+fqJBfcQFnxQBKIEXH4guMM+hAzaWkma14L+yAbF0NFj357OGJ9U4KWjdWP5TICUtWPNEonxgf8ru/ke8/7f31novTWM4uaizOwHmue1cs1VutWv9UeRKXGiWCwp1K3E1cNnrH9qZPfxSJZJIBDasQRt0YZ3zZED38+1cW9E6RGbOiNKTlKpk+oydXjbhhmJYRu83y71lTp1LvNczSuKcmMEuwIXUdlUn27DUgmwztn5302TBDqUSpBSo9a3gHBtxx8bCrrLyqyVHG64en62SWLcqhYlAQU78Tjv0+g/PfrXTc4qfI+5ViJ87+bQXgpXhZz5TA8tG16UA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) by DB9PR10MB6313.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:39d::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19; Thu, 2 Nov 2023 16:03:32 +0000 Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8496:a3a3:d7a8:b24d]) by AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8496:a3a3:d7a8:b24d%4]) with mapi id 15.20.6954.020; Thu, 2 Nov 2023 16:03:32 +0000 Message-ID: <0b21ba4e-5c47-4625-a9ec-e45e54ba9229@siemens.com> Date: Thu, 2 Nov 2023 17:03:30 +0100 User-Agent: Mozilla Thunderbird From: Jan Kiszka Subject: [PATCH] net: ti: icssg-prueth: Add missing icss_iep_put to error path Content-Language: en-US To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , MD Danish Anwar Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Lopes Ivo, Diogo Miguel (T CED IFD-PT)" , Nishanth Menon , "Su, Bao Cheng (RC-CN DF FA R&D)" X-ClientProxiedBy: FR2P281CA0181.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9f::17) To AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR10MB6181:EE_|DB9PR10MB6313:EE_ X-MS-Office365-Filtering-Correlation-Id: e07bc7ee-3b1c-430d-4c60-08dbdbbd4309 X-LD-Processed: 38ae3bcd-9579-4fd4-adda-b42e1495d55a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dWsU2iVLaIx1JkFh1U3gc0l5Nk33EMxAdQf7F+4TRH+gj9vYlZzrOrWlFUrSHJFEGpJJIrIS5um4ApHHIEIlsE/+0B2usgUwk56bnHA0lHMZxDxY2Js6EMEV4R9YYsDyLMzmiPCSeh8s2zKQXjcBk1yy3OQQYccByUFFmURx/kGmaWe3CcZGr/LvoIKBqZI6ZMFqKjv/5IA1ApNNN3+ihCUcrMrsoNIKClgd2P7ryLPsbslKa6fCRyRmJPbXmbFST6dRvkrk2oNuQ4inx3zIKf7q8AGP8ar2ImxpUXV6/xw82FMU/mcmAyn+P82eZIGqmCCOftI6jD6lQpGa/xAYY4ysDOElL6Qe1lCJjg0cHUJ4Trq4BugxVMVkw/MmK75TQduTrxo/YYhbckhUmgapnMzAyrFheKBI/dK6tvPKcVp2SWa7X/QxRq+/RTMIaDt8ofsVt3AL4C84Legiz7+r2jyY3EygyYVMdHKBJg+SdP9NUksBU7z3JC2LakDS2phWHUEmbWys7l0ZU3K6UCML7zMtOieufOGa9DvO+roJ1LviZ/wOAl92IPp6uIxMMxm2tsoe4adJXFYkPk8rt4ztX74wKWm9bY5LhxcnEXKV/5E8W8B8B8FHSjKFSdFCyNYFlWU23eOea7Qh8bTXtlVeHQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(396003)(39860400002)(366004)(346002)(376002)(136003)(230922051799003)(1800799009)(186009)(64100799003)(451199024)(26005)(2616005)(6512007)(6506007)(5660300002)(4744005)(2906002)(4326008)(107886003)(110136005)(41300700001)(44832011)(54906003)(8936002)(66476007)(8676002)(478600001)(6486002)(66946007)(316002)(66556008)(38100700002)(82960400001)(86362001)(36756003)(31696002)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?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QnG9WiRmMphl5FIw1DvjdZRUVO9qaiVox8cdwEpiLEc?= =?utf-8?q?TStkZzH/FTvWwk7Ccgdz2EZqgurGLOiGjo0ZOVhcO7wVYJc2uQh4TQJinPo7CZZeK?= =?utf-8?q?WcmmmemrEpDrWVoHcuDAyGB6RNdLmPWrNZD/zeqUIjRm8rrWHG0PV2luBWwtlk6c0?= =?utf-8?q?s5BhTaSG9HvLppim6dB2iUEXBR8LQ4wCKCgdrWAEPTY9vKe+jc7wM7mZxdj2bvdeK?= =?utf-8?q?0wPbEexfIaBlMEhiuuEXCBF7yzcXhKQvIbBf7PbmPfEPx6dAfHXVY9h4eDiskR1RO?= =?utf-8?q?+/Pk55bFFto8X0zm/8WabMHEDhD+OhC6wyl8aVeuxRDemRG/SS0FdsVR1i0ous1sc?= =?utf-8?q?KhoAYdDp7vw+1rh1m7vyInzQP8p/WupZcjDPQ11CttZP2G6pdOXRV7l7QaKsZ4YPG?= =?utf-8?q?Km8K2Ua+hPYUjb+V44xXHk2KR3Wdn+wwNn118CBDVVGSmKPF/MVbkqvxceNArrE2d?= =?utf-8?q?PqUrK80LRpOFlo8xn3ynwfTIJiRQKlFp6W+SNb19o9NaWSZ/G2eKAAT/qkO58Clva?= =?utf-8?q?fqFe6tujzHLoaFcwh8ENzxsRRnyKylMTxk0MK/BmHgZm4gU4ydvPTgrcTTbo3owGu?= =?utf-8?q?Owe1pTka4W5vE/yy0JZPVdgufD1S2fCYj3rXQA1puf2txXa2gWAf7wmkODoo3tACe?= =?utf-8?q?Jnd5WgdwQcovL+rZI07DaPxvEncYeWUHUw=3D=3D?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: e07bc7ee-3b1c-430d-4c60-08dbdbbd4309 X-MS-Exchange-CrossTenant-AuthSource: AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2023 16:03:32.4018 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jLz3qO/JvWoodMSF3gQQ/euHGitA35hWylNyySa59nzW1XzTNfdIE+6UafHEOt9EdMCEMmRgD+q0MBVNSoAXEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR10MB6313 X-Patchwork-Delegate: kuba@kernel.org From: Jan Kiszka Analogously to prueth_remove. Signed-off-by: Jan Kiszka --- This was lost from the TI SDK version while ripping out SR1.0 support - which we are currently restoring for upstream. drivers/net/ethernet/ti/icssg/icssg_prueth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/ti/icssg/icssg_prueth.c b/drivers/net/ethernet/ti/icssg/icssg_prueth.c index ffae89a6ccc5..0242e123fc05 100644 --- a/drivers/net/ethernet/ti/icssg/icssg_prueth.c +++ b/drivers/net/ethernet/ti/icssg/icssg_prueth.c @@ -2200,6 +2200,9 @@ static int prueth_probe(struct platform_device *pdev) if (prueth->pdata.quirk_10m_link_issue) icss_iep_exit_fw(prueth->iep1); + icss_iep_put(prueth->iep1); + icss_iep_put(prueth->iep0); + free_pool: gen_pool_free(prueth->sram_pool, (unsigned long)prueth->msmcram.va, msmc_ram_size);