From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E406043FB4 for ; Mon, 6 May 2024 13:45:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5A64340696; Mon, 6 May 2024 13:45:08 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2068.outbound.protection.outlook.com [40.107.237.68]) by mails.dpdk.org (Postfix) with ESMTP id B900E402EB; Mon, 6 May 2024 13:45:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qc0ke9u/Ns/KRWRDnoh5GueVz3Yf9g3Zhahe8l/4kN6OFnC8bUQXUc78vMGsUOsv35WRii6OJvbyYKubZZg6MBal5gr5oQpu0fB/vBF5HVBdYP6PppazXaZsCwKlx1LsDu+2KMM+onByD+7N5X8JS6/tkVYLu+Az1CN9Zcm4mnERQooN2Qf2Y4wwsFhphLStLxGLBrQLRiNihYAbY8+e5PFXCjj7aJQVPy7hl2QeqKoWiGyDBddFr3SZk1iiJ9DgrMPd5k7WUs4642yu/viarsUvWB9w75fIyR4fjVFDXFIB3xEPYM6ogM4P1GbcpjZLxPHF3nCN7rU4vaktWbNwLw== 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=aFueeaTXYfvfkYcVoCeRDw3V4wgquURkgmTOqPSEkm4=; b=Oq9OLeZqU+uMZ4zLq2YHduzuv6v0jf8V9ewUI541j6HS1STFb+okbmQcX7MKOx4s6qUba/4DAjkq4r+CvTY0zaCOYJVd7s7lKw8Q3VjKJMGZYT/Rev5Hej6a0mtFgxZymUSek3ResfsfhoW1YWVsVu2giT3cyJJlvlmzXA5wZvXEufwCo4/7jpui7Z6JJYybo1WI3n9J1JQxwki5hBr1mBY5+a0ra5KeSY03VlPh3k7d2pFxwhU88KzfJG7w5TQ9ePp+hShsA87o5sS388HjWMF9ydG9OIRn1zz2YXkGvhlhf9A6NKwDgCRMNKdREVsmrYgkhhNZKFWiMjOt0yk0CA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aFueeaTXYfvfkYcVoCeRDw3V4wgquURkgmTOqPSEkm4=; b=LctKRBiyIy9tV7T+t68FlrLGuXv1oN3dDblU/cvejp0DX5XW789XKoJAemOgSHpnqYUUq4QAlBfglmRTVvhcjkgsX8SmV9HUognWDFy13imLwj+ZE6+SCmaQ0Sv3oAoj07UYfRGxK7W/RilBc09R6X8DCUDdHsAqRlAab8HCpD0Nho+/+smpMoiaN6nYanf9WYD8TIuhtYGStRsfYmZ7FQg0IOXKWtoV+JJ/siIdC1o5Zge0wV61SFj9J+NdkEbJWOiMCdrIK3TXVNrrRPB4ebllmWdE1XbWz4VGDQNZ7Kk5w5HGTsSx4bgCNb/hy4GLWKv0E+0z+qpOf5NVao1a3g== Received: from BN0PR04CA0114.namprd04.prod.outlook.com (2603:10b6:408:ec::29) by IA1PR12MB7638.namprd12.prod.outlook.com (2603:10b6:208:426::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42; Mon, 6 May 2024 11:45:04 +0000 Received: from BN3PEPF0000B373.namprd21.prod.outlook.com (2603:10b6:408:ec:cafe::ab) by BN0PR04CA0114.outlook.office365.com (2603:10b6:408:ec::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.39 via Frontend Transport; Mon, 6 May 2024 11:45:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by BN3PEPF0000B373.mail.protection.outlook.com (10.167.243.170) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.0 via Frontend Transport; Mon, 6 May 2024 11:45:04 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 6 May 2024 04:44:51 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 6 May 2024 04:44:50 -0700 Received: from nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4 via Frontend Transport; Mon, 6 May 2024 04:44:47 -0700 From: Itamar Gozlan To: , , , , , , , Dariusz Sosnowski , Ori Kam , Matan Azrad , Alex Vesker CC: , Subject: [v2 07/16] net/mlx5/hws: fix error flow in mlx5dr context open Date: Mon, 6 May 2024 14:44:10 +0300 Message-ID: <20240506114419.966498-7-igozlan@nvidia.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240506114419.966498-1-igozlan@nvidia.com> References: <20240314114220.203241-1-igozlan@nvidia.com> <20240506114419.966498-1-igozlan@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF0000B373:EE_|IA1PR12MB7638:EE_ X-MS-Office365-Filtering-Correlation-Id: 4d42eccd-c590-45d0-6f31-08dc6dc1f852 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|36860700004|376005|1800799015|82310400017|921011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?GXipr25YmiGZ/cs1PtJl0RVUoCFJGRFZbnjtLuZfW4E8uRUdb+JY+TX6FTrO?= =?us-ascii?Q?W+gvsQKc02zkwZXJ+y5L7tbnj+P94BAOrXrPeSKJZbQNzxwAc1oFaAq/VnBp?= =?us-ascii?Q?PXGF0Ykis6Q5mtKTnfTmmg7+f8Ijan2OnYuVKr47+x375vAlxNDLW8hKU9r4?= =?us-ascii?Q?yhawhhpbE0Ru1bcdb+0oCO278l+E7QCV2RQw4jxngj4FokfaayNLOzlkLLMb?= =?us-ascii?Q?LhXLRsIRf3LiFn9tO3pPROW9y8EdErF5JuPQ/vWYodiwDZZfVtzhzmaMzt+X?= =?us-ascii?Q?8GzR9+eeKpMc33Ly02IEsjWqjoc2QK7i1M6x/8olmbjEs/s7lu7uDgh+EEqI?= =?us-ascii?Q?wlbsQE56ynImV2KO7N38vS/mriXrIJKIdr74jPBehMINtoLZSQHoMTuaNzNC?= =?us-ascii?Q?6W6np/cBHGQZQta7+GOcXffwVH4TOAMbnLNGSiA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pCG73BFWp249oIFM97UEAwf84+k9/98f77annppPg1SPQOr0bHtIRa3R?= =?us-ascii?Q?ReeTGvI=3D?= X-Forefront-Antispam-Report: CIP:216.228.118.232; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge1.nvidia.com; CAT:NONE; SFS:(13230031)(36860700004)(376005)(1800799015)(82310400017)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2024 11:45:04.0160 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4d42eccd-c590-45d0-6f31-08dc6dc1f852 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.232]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN3PEPF0000B373.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB7638 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Yevgeny Kliteynik Add missing spinlock destruction in error flow. Fixes: b0290e56dd08 ("net/mlx5/hws: add context object") Cc: stable@dpdk.org Signed-off-by: Yevgeny Kliteynik Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/hws/mlx5dr_context.c b/drivers/net/mlx5/hws/mlx5dr_context.c index 15d53c578a..7f120b3b1b 100644 --- a/drivers/net/mlx5/hws/mlx5dr_context.c +++ b/drivers/net/mlx5/hws/mlx5dr_context.c @@ -263,6 +263,7 @@ struct mlx5dr_context *mlx5dr_context_open(struct ibv_context *ibv_ctx, free_caps: simple_free(ctx->caps); free_ctx: + pthread_spin_destroy(&ctx->ctrl_lock); simple_free(ctx); return NULL; } -- 2.39.3