Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Keith Busch <kbusch@kernel.org>
To: francis.p@samsung.com
Cc: axboe@fb.com, hch@lst.de, sagi@grimberg.me,
	linux-nvme@lists.infradead.org, anshul@samsung.com,
	jg123.choi@samsung.com, prakash.bv@samsung.com,
	d.palani@samsung.com, sathya.m@samsung.com
Subject: Re: [PATCH] nvme-pci: use correct size to free the hmb buffer
Date: Fri, 10 Jan 2025 20:56:51 -0700	[thread overview]
Message-ID: <Z4HsA5tGUs1Fp4vH@kbusch-mbp> (raw)
In-Reply-To: <20250109235137.8995-1-francis.p@samsung.com>

On Fri, Jan 10, 2025 at 05:21:37AM +0530, francis.p@samsung.com wrote:
> From: Francis Pravin <francis.p@samsung.com>
> 
> dev->host_mem_size value is updated only after the successful buffer
> allocation of hmb descriptor. Otherwise, it may have some undefined value.
> So, use the correct size to free the hmb buffer when the hmb descriptor
> buffer allocation failed.

Thanks, applied to nvme-6.14.


      parent reply	other threads:[~2025-01-11  3:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20250110051900epcas5p12cd1640b8e8d7a64680c5130091ad6e6@epcas5p1.samsung.com>
2025-01-09 23:51 ` [PATCH] nvme-pci: use correct size to free the hmb buffer francis.p
2025-01-10 10:02   ` Christoph Hellwig
2025-01-10 22:50   ` Sagi Grimberg
2025-01-11  3:56   ` Keith Busch [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=Z4HsA5tGUs1Fp4vH@kbusch-mbp \
    --to=kbusch@kernel.org \
    --cc=anshul@samsung.com \
    --cc=axboe@fb.com \
    --cc=d.palani@samsung.com \
    --cc=francis.p@samsung.com \
    --cc=hch@lst.de \
    --cc=jg123.choi@samsung.com \
    --cc=linux-nvme@lists.infradead.org \
    --cc=prakash.bv@samsung.com \
    --cc=sagi@grimberg.me \
    --cc=sathya.m@samsung.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