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: 160973 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp460197vqu; Thu, 2 Nov 2023 09:04:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFgoChiU202MfXj8WFZI84U0m2ON64oHGIpcz17pDfOr5VgUWxv4AuWJtZLT2EGF9Xb3HX1 X-Received: by 2002:a17:90a:348d:b0:27d:1334:d266 with SMTP id p13-20020a17090a348d00b0027d1334d266mr13998704pjb.27.1698941049179; Thu, 02 Nov 2023 09:04:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698941049; cv=pass; d=google.com; s=arc-20160816; b=DlmKysJofrXLiqL6K2HIIa+GbIJ/lc8PGyLGyDrWMDFURHsi2/effiylO6rcG5mWu7 fHdKWgcBXjpooCuPF+11GumkB77MEdStaIsUo/rewikudJt83kaDc9bt0vUwoyiwFrXu +T2tlUs1zXRfI/uC6PKTlzEZPVWPnthzkkPEFJ5EIX5p45gzu5q6l7mzIrqbmN3LNrgX uTkVut2gRe9bR0dPILZTDqbu5LYN2vwrUjZm0LXxwR4KJO+qlpwLlS4qQAk1nP0p8BqV fAl4XfVpNOj73nXGUkGrDF5BW6ppWIzXo+V6qmVk4mApB1vTL1MFW7vv8C3SoXqwP13K tH1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding:cc:to :content-language:subject:from:user-agent:date:message-id :dkim-signature; bh=x+4VQRknpttP0AycKsosOfeASDoNhaMJvH5V0cmo7Jo=; fh=IfDCyBAQ+OCqZE/5MjZ0TiIb+LM6ZvAzg9rjFsECMmU=; b=YSN5soGOha6qhmJc2b3K7mAd6r+cybgLuVxiVLaMjT2Z3PcCqeUADnGBaIsddRHJmg 2IJ0RTTgfo7U9E8E8rgnyvH+3jAruHz3cZhamCy7SbOTZ4lnsCHMipyBea4lP++PR8Su wfrk4jdnw4/C7qA0V/I6OifKKODRPo3dk2UwHXmJFXrS4xdLarTGRpXRGvQ7E+T3aw+7 ezqvgXUWqSDKa5qkqFBtfr9ndJpo0VFF1IO180tVc13o58FeQtsQImXDkU7zW/rjLuFU vv9uqKwbdlf+i5PGwJKcnQ3wsvycYqAGuKLnGMLhRuXMUt0mHGdVJXhi4ohkxNOzLg14 Vv3Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=aUOdniCW; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id l2-20020a17090ac58200b0027901ee93fbsi78759pjt.156.2023.11.02.09.04.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 09:04:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=aUOdniCW; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 20464817C8BE; Thu, 2 Nov 2023 09:04:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377048AbjKBQDm (ORCPT + 35 others); Thu, 2 Nov 2023 12:03:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235429AbjKBQDl (ORCPT ); Thu, 2 Nov 2023 12:03:41 -0400 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) 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?q?XfGLn6M/c4vMdxk9MvaX/s07iVsd?= =?utf-8?q?R6gnSdPeo/PzIqU5iDL0n7FhX94wzUg4CrVtuCTpcdWEiaD23S3Zu6Iki5rGiHWZe?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QJinPo7CZZeK?= =?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-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 02 Nov 2023 09:04:01 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781468809274224782 X-GMAIL-MSGID: 1781468809274224782 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);