All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: Jiacheng Shi <billsjc@sjtu.edu.cn>
Cc: Wenpeng Liang <liangwenpeng@huawei.com>,
	Weihang Li <liweihang@huawei.com>,
	linux-rdma@vger.kernel.org
Subject: Re: [PATCH] RDMA/hns: Replace kfree with kvfree
Date: Tue, 14 Dec 2021 20:17:02 -0400	[thread overview]
Message-ID: <20211215001702.GA998963@nvidia.com> (raw)
In-Reply-To: <20211210094234.5829-1-billsjc@sjtu.edu.cn>

On Fri, Dec 10, 2021 at 01:42:34AM -0800, Jiacheng Shi wrote:
> Variables allocated by kvmalloc_array should not be freed by kfree.
> Because they may be allocated by vmalloc.
> So we replace kfree with kvfree here.
> 
> Fixes: 6fd610c5733d ("RDMA/hns: Support 0 hop addressing for SRQ buffer")
> Signed-off-by: Jiacheng Shi <billsjc@sjtu.edu.cn>
> Acked-by: Wenpeng Liang <liangwenpeng@huawei.com>
> ---
>  drivers/infiniband/hw/hns/hns_roce_srq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to for-rc, thanks

Jason

  parent reply	other threads:[~2021-12-15  0:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-10  9:42 [PATCH] RDMA/hns: Replace kfree with kvfree Jiacheng Shi
2021-12-14 14:14 ` Wenpeng Liang
2021-12-15  0:17 ` Jason Gunthorpe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-12-10  9:32 Jiacheng Shi

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=20211215001702.GA998963@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=billsjc@sjtu.edu.cn \
    --cc=liangwenpeng@huawei.com \
    --cc=linux-rdma@vger.kernel.org \
    --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.