linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/2] fix a NULL pointer bug and simplify the code
@ 2021-02-18 12:26 Sun Ke
  2021-02-18 12:26 ` [PATCH v6 1/2] nbd: Fix NULL pointer in flush_workqueue Sun Ke
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Sun Ke @ 2021-02-18 12:26 UTC (permalink / raw)
  To: josef, axboe, Markus.Elfring; +Cc: linux-block, nbd, linux-kernel, sunke32

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-11 13:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18 12:26 [PATCH v6 0/2] fix a NULL pointer bug and simplify the code Sun Ke
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

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).