From: Luca Boccassi <bluca@debian.org>
To: Chas Williams <3chas3@gmail.com>, dev@dpdk.org
Cc: skhare@vmware.com
Subject: Re: [dpdk-dev] [PATCH] net/vmxnet3: fix memory leak when releasing queues
Date: Thu, 02 Nov 2017 10:03:19 +0000 [thread overview]
Message-ID: <1509616999.17108.3.camel@debian.org> (raw)
In-Reply-To: <20171101203820.8021-1-3chas3@gmail.com>
On Wed, 2017-11-01 at 16:38 -0400, Chas Williams wrote:
> From: Chas Williams <chas3@att.com>
>
> At the end of the queue release, we can free the containers for the
> queue objects.
>
> Fixes: dfaff37fc46d ("vmxnet3: import new vmxnet3 poll mode driver
> implementation")
>
> Signed-off-by: <chas3@att.com>
> ---
> drivers/net/vmxnet3/vmxnet3_rxtx.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/net/vmxnet3/vmxnet3_rxtx.c
> b/drivers/net/vmxnet3/vmxnet3_rxtx.c
> index 01c85f1..18dce72 100644
> --- a/drivers/net/vmxnet3/vmxnet3_rxtx.c
> +++ b/drivers/net/vmxnet3/vmxnet3_rxtx.c
> @@ -203,6 +203,8 @@ vmxnet3_dev_tx_queue_release(void *txq)
> vmxnet3_cmd_ring_release(&tq->cmd_ring);
> /* Release the memzone */
> rte_memzone_free(tq->mz);
> + /* Release the queue */
> + rte_free(tq);
> }
> }
>
> @@ -223,6 +225,9 @@ vmxnet3_dev_rx_queue_release(void *rxq)
>
> /* Release the memzone */
> rte_memzone_free(rq->mz);
> +
> + /* Release the queue */
> + rte_free(rq);
> }
> }
>
Reviewed-by: Luca Boccassi <bluca@debian.org>
--
Kind regards,
Luca Boccassi
next prev parent reply other threads:[~2017-11-02 10:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-01 20:38 Chas Williams
2017-11-02 10:03 ` Luca Boccassi [this message]
2017-11-03 0:17 ` Ferruh Yigit
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1509616999.17108.3.camel@debian.org \
--to=bluca@debian.org \
--cc=3chas3@gmail.com \
--cc=dev@dpdk.org \
--cc=skhare@vmware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).