From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id C50591B854 for ; Tue, 15 May 2018 15:49:10 +0200 (CEST) Received: by mail-wr0-f193.google.com with SMTP id i14-v6so231743wre.2 for ; Tue, 15 May 2018 06:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=j8f7Rkmy6Q+h9XxA/GaupDzpttVA4N6fXDG9r3lnRm4=; b=DyqkJJYNF1j7uhumNvxdeh3nHQmkl2wplSl+8JmYrvvwVgfXulcaKDfNNNoKILcN6m 1+PB7WJiIs7Q6eNrAPv4WR19pKHcyD/l3CInz/2eQp8SFSUbAwLlf0trUOVLTa0LlNue i1rPqXjuC6qRxukcVy9ZfeYhr5Lzzq5bZxSVzO5F+2kGB+MsKDo4kNQ6LHeoCwzAVUv3 LG7AafmtG37bBudmDeO1O5cJvukdLXI0JzH2UZGYgIxGZEYtvuIXB1B8aHCNep8ty5al 51JTeo0dWTf26OYIH9ArRgWvXqs1Rzm6DXTQKAeaORKJaanzj0R0NDxIcrwwFQGntzZM +TuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=j8f7Rkmy6Q+h9XxA/GaupDzpttVA4N6fXDG9r3lnRm4=; b=tXRv/NsuoLuw3nfC4bfqR7xbntdIpuphGyDdF+KivvBt8Ee6gMOpr86PW+Y0woxelP RZseybDDXAm3xTlSldr1lZnIxJEo/REVhvrEn3Ii4gqCLZpo0MJrHk0lkoed56K5i5+t SFBaXz8psy9QNBczmqcaFT2ng11HgDLScc75ZYt4y/0Pa8JeKTloyA5j0/J1GFscrpxV ZDLqPIO9NuQ88vf7OBBJPHZz+kb4AJqTwXMuZolj2RnyUfPVBUnF/F7m9I2wBjBjQG2G d2uA9fASL4Qv/P+PfXGwnlHJIiiqkzH6i6DoFqJL7nd01SkqDbZzZEAoWkK16FI1Nq9a hDpA== X-Gm-Message-State: ALKqPwdoOyp/9yhNlkW+v7pHq9Za0vFxX7/zgaZVxeIqRx+LdwiZGa/1 SdmRksOX/HqbJ0juIterLUM= X-Google-Smtp-Source: AB8JxZoAlCUzDpdeghA1oz7rBdF/+5od7YjQSsVzogextLmD4Ts53KPJYWcgBIbbrLe90hcPT2NTNA== X-Received: by 2002:adf:85b8:: with SMTP id 53-v6mr11354432wrt.31.1526392150479; Tue, 15 May 2018 06:49:10 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id s5-v6sm128576wra.48.2018.05.15.06.49.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:49:09 -0700 (PDT) From: luca.boccassi@gmail.com To: Raslan Darawsheh Cc: Yongseok Koh , dpdk stable Date: Tue, 15 May 2018 14:47:04 +0100 Message-Id: <20180515134731.9337-53-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-1-luca.boccassi@gmail.com> References: <20180503110612.12146-2-luca.boccassi@gmail.com> <20180515134731.9337-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/mlx5: fix resource leak in case of error' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 13:49:10 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 84b009cc2186a93adff2f5d984c4ffcf4de066fa Mon Sep 17 00:00:00 2001 From: Raslan Darawsheh Date: Tue, 8 May 2018 12:11:27 +0300 Subject: [PATCH] net/mlx5: fix resource leak in case of error [ upstream commit 690de2850b26466ad5325fde3e1aff040e3868f8 ] If something went wrong in mlx5_pci_prob the allocated eth dev will cause a memory leak. This commit release the eth dev that was previously allocated. Fixes: 771fa900b73a ("mlx5: introduce new driver for Mellanox ConnectX-4 adapters") Signed-off-by: Raslan Darawsheh Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index 9cd4243e4..81057f438 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -956,6 +956,8 @@ port_error: claim_zero(mlx5_glue->dealloc_pd(pd)); if (ctx) claim_zero(mlx5_glue->close_device(ctx)); + if (eth_dev && rte_eal_process_type() == RTE_PROC_PRIMARY) + rte_eth_dev_release_port(eth_dev); break; } /* -- 2.14.2