From: Jens Axboe <axboe@kernel.dk>
To: Shaohua Li <shli@fb.com>, linux-block@vger.kernel.org
Cc: dan.carpenter@oracle.com
Subject: Re: [PATCH] block/nullb: delete unnecessary memory free
Date: Mon, 28 Aug 2017 14:55:59 -0600 [thread overview]
Message-ID: <2614b8bd-ed7a-7953-6d14-7e05850fe88b@kernel.dk> (raw)
In-Reply-To: <9df1970109b84fc170530a5ffa5c07e4480e445f.1503953204.git.shli@fb.com>
On 08/28/2017 02:49 PM, Shaohua Li wrote:
> Commit 2984c86(nullb: factor disk parameters) has a typo. The
> nullb_device allocation/free is done outside of null_add_dev. The commit
> accidentally frees the nullb_device in error code path.
Is the code in nullb_device_power_store() correct after this?
Also, looks like the second else if in there should be using
'dev' instead of to_nullb_device(item)->power.
--
Jens Axboe
next prev parent reply other threads:[~2017-08-28 20:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-28 20:49 [PATCH] block/nullb: delete unnecessary memory free Shaohua Li
2017-08-28 20:55 ` Jens Axboe [this message]
2017-08-28 21:04 ` Shaohua Li
2017-08-28 21:05 ` Jens Axboe
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=2614b8bd-ed7a-7953-6d14-7e05850fe88b@kernel.dk \
--to=axboe@kernel.dk \
--cc=dan.carpenter@oracle.com \
--cc=linux-block@vger.kernel.org \
--cc=shli@fb.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.