patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Michael Baum <>
Cc: Matan Azrad <>,
	Raslan Darawsheh <>,
	Viacheslav Ovsiienko <>,
Subject: [dpdk-stable] [PATCH 2/2] net/mlx5: fix Tx queue creation error flow
Date: Tue, 15 Dec 2020 08:48:32 +0000
Message-ID: <> (raw)
In-Reply-To: <>

In Tx queue creation, there are two validations for the Tx

When one of them fails, the MR btree memory was not freed what caused a
memory leak.

Free it.

Fixes: f6d9ab4e769f ("net/mlx5: check Tx queue size overflow")

Signed-off-by: Michael Baum <>
Acked-by: Matan Azrad <>
 drivers/net/mlx5/mlx5_txq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c
index d96abef..b81bb4a 100644
--- a/drivers/net/mlx5/mlx5_txq.c
+++ b/drivers/net/mlx5/mlx5_txq.c
@@ -1146,6 +1146,7 @@ struct mlx5_txq_ctrl *
 	LIST_INSERT_HEAD(&priv->txqsctrl, tmpl, next);
 	return tmpl;
+	mlx5_mr_btree_free(&tmpl->txq.mr_ctrl.cache_bh);
 	return NULL;

  reply	other threads:[~2020-12-15  8:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-15  8:48 [dpdk-stable] [PATCH 1/2] net/mlx5: fix Rx " Michael Baum
2020-12-15  8:48 ` Michael Baum [this message]
2021-01-06 21:47   ` [dpdk-stable] [PATCH 2/2] net/mlx5: fix Tx " Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ \
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone