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 B5BBF43CA5; Thu, 14 Mar 2024 12:43:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AB18442EBF; Thu, 14 Mar 2024 12:43:26 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by mails.dpdk.org (Postfix) with ESMTP id 3765D42EA7 for ; Thu, 14 Mar 2024 12:43:21 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=akrsxVe6tsp/FKKnEH1EB8s4Y8GwN+GAGDn7Clk3hy3PCAVN7VN1gYI891uzj/bwtYgjTPyYn29pcfXnet8i6HVsNH6S2gppIS8q+Ci4so0AgTgmSyrdeZg0A/EV6I58m3HatmT3V08Z+VGLIPi47Y574bIcg5XnaKWGliHBWHGgh7r5QnvIac3Dv0aiWXh1CRrh/G37MuMxH2AE88kS0MPzZcYmbWtIOuYK5HLdGgqMivbpG8YiGjHl8n5o9NKiyJue4QDyMa9kOifgqTgaxfPmNMJ8rM6qxt6CeildmBD7GeRK0BS4ya9LVedIE7CmETP6hpn5lzFS0NiUaqFgGQ== 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=sgW1jkAGWHx0Z77s9w4NBl02zicMd+jDdHR4D2dO9/U=; b=N5r4JUxC0GMqMRvT3DcTZERxG10KX8Eg9UdzgcvRzv/szN5KcS+pAUaSTlIBySg74d0rahKIZpD2iftY8oYnVB/prDnr/yXsgwCahOwQNtEzTU47590kDZIcioDrvADoXCfHCxuJMOiu9M0aYWp9gdbDlcDYrQxoQFMKfKLuc3IlMzOqCKK1sIK1xFotzzbviT3+vqpzRaIiEHXxZw4xHJSGVptuU76bVMwSgoGoW7X4ScBCkkZN1pK8t/XGMQxysFbhwUTWsgMblx4cCAGmNKV+jkF07UArbusRyoAh37KA8oWpteYBNvR8faBG5aDZMoxi8G7i+LKz+xC2q11/7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=sgW1jkAGWHx0Z77s9w4NBl02zicMd+jDdHR4D2dO9/U=; b=jopWKc1bn2k93P30aTdiV14MHNGr0a69iJqTmz8B/xWfciStak0tTM3t61z/yhHJFMg/vO3ZrnUz0lf58xPzoCeLYd20w7fNDvLh+MmJ7vX1JgphiSHUlum9tGLMrlSs2c77O82oM8RV6Wa2djV7n0SJmCyHvFLEyy3FSvmW+TOo1pIkahmHVc/wpXRFJ7NPp/jP0UmABmsSD4vzgoBbuVJgC37bOu70qgdKWMYWjFZR4vMljmEXyspJPL2yD8L3Dn7kOo2sAv/p016ArUIxRZvz3uVSms5EvXAiZYc9qPJ+QpNho+mTybECuaHLtfd574mn2eHpXfoEIGE9CgDaqg== Received: from DS7P222CA0029.NAMP222.PROD.OUTLOOK.COM (2603:10b6:8:2e::28) by MN0PR12MB5716.namprd12.prod.outlook.com (2603:10b6:208:373::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.41; Thu, 14 Mar 2024 11:43:19 +0000 Received: from CY4PEPF0000E9D5.namprd05.prod.outlook.com (2603:10b6:8:2e::4) by DS7P222CA0029.outlook.office365.com (2603:10b6:8:2e::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.20 via Frontend Transport; Thu, 14 Mar 2024 11:43:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CY4PEPF0000E9D5.mail.protection.outlook.com (10.167.241.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.12 via Frontend Transport; Thu, 14 Mar 2024 11:43:18 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 14 Mar 2024 04:43:11 -0700 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Thu, 14 Mar 2024 04:43:10 -0700 Received: from nvidia.com (10.127.8.12) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12 via Frontend Transport; Thu, 14 Mar 2024 04:43:07 -0700 From: Itamar Gozlan To: , , , , , , , Dariusz Sosnowski , Ori Kam , Suanming Mou , Matan Azrad CC: , Subject: [PATCH 07/13] net/mlx5/hws: fix error flow in mlx5dr_context_open Date: Thu, 14 Mar 2024 13:42:14 +0200 Message-ID: <20240314114220.203241-7-igozlan@nvidia.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240314114220.203241-1-igozlan@nvidia.com> References: <20240314114220.203241-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: CY4PEPF0000E9D5:EE_|MN0PR12MB5716:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b48cc3f-4b99-4c22-e597-08dc441bf16a 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; X-Microsoft-Antispam-Message-Info: Y9reQ4sps6kUoBpelo2uvtNb06URqQZ58AWTCNkBrVGTI64KRCvOVH0VuwdCSfY38vCdLUdlxc4TYSFrpLZxQ0hpDncrxHFMVT9q6T1q8WbLGokV7HgqEqJ/fa80e4yCLmIFEso2S0uj3aSMH3q7OkB0KkC8KcV4kG+1JFdYATYvX2UD8Kb1KKoqXt6SK7MNPlOYdKpQmplEYbwXEnPNgWg0uGQdw0GnsxGsVJYPqpBhVS4ezcFd4pptCzIJx6lKm1crDB+bfH+b2I9YMr+m6JOvFvAY+Mf4x2LS8NHW0DsxFToHEn2p3aYZ8EC+GmswTL3FhOvFnKNKOHCJ6B6vK5q/o4As8GHQeUri6KNMVfmhMOSe1eMmfCVoZ2J4jalPFQdWyReREY0GaQZsbC7+52bnheldl9626JilSrFynS/3EqbT3YZvvZ+8COkxh3HieFWUfBPC2+dbgXK48tcghrK5XG2YAlnGUHskCWn56lXGhU4uXXpGEl23bsEOjCVV4ELg1iN3kAlEC4YYLnsx2a89/5yEWZi82toPhZzYOtgKLHdrjoJ2WYZyyu+6z9ofobN55igW+bvIPB6J0jLIzTCVddUijOy/m1WLmvJNma/ApK9LoCfgS99Wl4y3zx/aXqfzutZyk9PipVfm4LVKSbKeGv/eZdYyaY6remuBXkAAHX9ciS220uNZPxIaOo7BDmnUEuVe8CbVtDrRbv79rPoRhi6KzN07kA3Ha1o1ma17oQpEb+9C/GTewCQRqKOHrKTNxO673fIVUVvYBEaxpQ== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(82310400014)(1800799015)(36860700004)(376005)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2024 11:43:18.3950 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7b48cc3f-4b99-4c22-e597-08dc441bf16a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5716 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Yevgeny Kliteynik Add missing spinlock destruction in error flow. Fixes: b0290e56dd08 ("net/mlx5/hws: add context object") 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