From: Jens Axboe <axboe@kernel.dk>
To: "Wei Yongjun" <weiyj.lk@gmail.com>,
"Matias Bjorling" <mb@lightnvm.io>,
"Javier González" <jg@lightnvm.io>
Cc: Wei Yongjun <weiyongjun1@huawei.com>, linux-block@vger.kernel.org
Subject: Re: [PATCH -next] lightnvm: fix possible memory leak in pblk_bb_discovery()
Date: Tue, 25 Apr 2017 09:44:55 -0700 [thread overview]
Message-ID: <0e66dbc8-5349-b911-819d-5191598486c5@kernel.dk> (raw)
In-Reply-To: <20170425161530.13445-1-weiyj.lk@gmail.com>
On 04/25/2017 09:15 AM, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> 'blks' is malloced in pblk_bb_discovery() and should be freed
> before leaving from the nvm_get_tgt_bb_tbl() error handling cases,
> otherwise it will cause memory leak. Also skip assign blks to
> rlun->bb_list when error.
Added for 4.12, thanks.
--
Jens Axboe
prev parent reply other threads:[~2017-04-25 16:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-25 16:15 [PATCH -next] lightnvm: fix possible memory leak in pblk_bb_discovery() Wei Yongjun
2017-04-25 16:40 ` Javier González
2017-04-25 16:44 ` Jens Axboe [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=0e66dbc8-5349-b911-819d-5191598486c5@kernel.dk \
--to=axboe@kernel.dk \
--cc=jg@lightnvm.io \
--cc=linux-block@vger.kernel.org \
--cc=mb@lightnvm.io \
--cc=weiyj.lk@gmail.com \
--cc=weiyongjun1@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox