All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: Weihang Li <liweihang@huawei.com>
Cc: <dledford@redhat.com>, <leon@kernel.org>,
	<linux-rdma@vger.kernel.org>, <linuxarm@huawei.com>
Subject: Re: [PATCH for-next] RDMA/hns: Fix double free of the pointer to TSQ/TPQ
Date: Thu, 12 Nov 2020 13:41:39 -0400	[thread overview]
Message-ID: <20201112174139.GA950009@nvidia.com> (raw)
In-Reply-To: <1605180582-46504-1-git-send-email-liweihang@huawei.com>

On Thu, Nov 12, 2020 at 07:29:42PM +0800, Weihang Li wrote:
> A return statement is omitted after getting HEM table, then the newly
> allocated pointer will be freed directly, which will cause a calltrace when
> the driver was removed.
> 
> Fixes: d6d91e46210f ("RDMA/hns: Add support for configuring GMV table")
> Signed-off-by: Weihang Li <liweihang@huawei.com>
> ---
>  drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied to for-next, thanks

Jason

      reply	other threads:[~2020-11-12 17:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-12 11:29 [PATCH for-next] RDMA/hns: Fix double free of the pointer to TSQ/TPQ Weihang Li
2020-11-12 17:41 ` Jason Gunthorpe [this message]

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=20201112174139.GA950009@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=dledford@redhat.com \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=liweihang@huawei.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.