[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq1tuzt9k6w.fsf@ca-mkp.ca.oracle.com>
Date: Tue, 02 Jun 2020 18:35:10 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: yu kuai <yukuai3@...wei.com>
Cc: <axboe@...nel.dk>, <ming.lei@...hat.com>,
<martin.petersen@...cle.com>, <wenwen@...uga.edu>,
<linux-block@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<yi.zhang@...wei.com>
Subject: Re: [PATCH] block/bio-integrity: don't free 'buf' if
bio_integrity_add_page() failed
Hi Yu!
I suggest a few minor wording tweaks to the commit message:
> commit e7bf90e5afe3 ("block/bio-integrity: fix a memory leak bug") add
s/add/added/
> a kree() for 'buf' if bio_integrity_add_page() return '0'. However,
> the
s/kree/kfree/
s/return/returns/
> object will be freed in bio_integrity_free() since 'bio->bi_opf' and
> 'bio->bi_integrity' was set previousy in bio_integrity_alloc().
s/was/were/
Otherwise OK.
And like Ming pointed out, you may want to add a comment about the
assertion that the first vec is valid.
Acked-by: Martin K. Petersen <martin.petersen@...cle.com>
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists