From: Sun Ke <sunke32@huawei.com>
To: <josef@toxicpanda.com>, <axboe@kernel.dk>, <Markus.Elfring@web.de>
Cc: <linux-block@vger.kernel.org>, <nbd@other.debian.org>,
<linux-kernel@vger.kernel.org>, <sunke32@huawei.com>
Subject: [PATCH v6 0/2] fix a NULL pointer bug and simplify the code
Date: Thu, 18 Feb 2021 07:26:18 -0500 [thread overview]
Message-ID: <20210218122620.228375-1-sunke32@huawei.com> (raw)
fix a NULL pointer bug and simplify the code
v6: Just add if (nbd->recv_workq) to nbd_disconnect_and_put().
v5: Adjust the title and add “Suggested-by”.
v4: Share exception handling code for if branches and
move put_nbd adjustment to a separate patch.
v3: Do not use unlock and add put_nbd.
v2: Use jump target unlock.
Sun Ke (2):
nbd: Fix NULL pointer in flush_workqueue
nbd: share nbd_put and return by goto put_nbd
drivers/block/nbd.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
--
2.25.4
next reply other threads:[~2021-02-18 14:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-18 12:26 Sun Ke [this message]
2021-02-18 12:26 ` [PATCH v6 1/2] nbd: Fix NULL pointer in flush_workqueue Sun Ke
2021-02-18 12:26 ` [PATCH v6 2/2] nbd: share nbd_put and return by goto put_nbd Sun Ke
2021-02-18 20:39 ` [PATCH v6 0/2] fix a NULL pointer bug and simplify the code Josef Bacik
2021-02-19 1:07 ` Jens Axboe
[not found] ` <aa80f848-c895-4478-f582-10a57a1166c3@huawei.com>
2021-05-11 13:48 ` 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=20210218122620.228375-1-sunke32@huawei.com \
--to=sunke32@huawei.com \
--cc=Markus.Elfring@web.de \
--cc=axboe@kernel.dk \
--cc=josef@toxicpanda.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nbd@other.debian.org \
/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;
as well as URLs for NNTP newsgroup(s).