qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] block/blkio: fix fd leak and add more comments for the fd passing
@ 2023-08-03  8:28 Stefano Garzarella
  2023-08-03  8:28 ` [PATCH v2 1/2] block/blkio: close the fd when blkio_connect() fails Stefano Garzarella
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Stefano Garzarella @ 2023-08-03  8:28 UTC (permalink / raw)
  To: qemu-devel
  Cc: Hanna Reitz, Stefan Hajnoczi, qemu-block, Kevin Wolf,
	Stefano Garzarella

Hanna discovered an fd leak in the error path, and a few comments to
improve in the code.

v2:
  - avoid to use `fd_supported` to track a valid fd [Hanna]

v1: https://lore.kernel.org/qemu-devel/20230801160332.122564-1-sgarzare@redhat.com/

Stefano Garzarella (2):
  block/blkio: close the fd when blkio_connect() fails
  block/blkio: add more comments on the fd passing handling

 block/blkio.c | 26 ++++++++++++++++++++------
 1 file changed, 20 insertions(+), 6 deletions(-)

-- 
2.41.0



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

end of thread, other threads:[~2023-08-03 15:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03  8:28 [PATCH v2 0/2] block/blkio: fix fd leak and add more comments for the fd passing Stefano Garzarella
2023-08-03  8:28 ` [PATCH v2 1/2] block/blkio: close the fd when blkio_connect() fails Stefano Garzarella
2023-08-03 13:50   ` Hanna Czenczek
2023-08-03  8:28 ` [PATCH v2 2/2] block/blkio: add more comments on the fd passing handling Stefano Garzarella
2023-08-03 15:28 ` [PATCH v2 0/2] block/blkio: fix fd leak and add more comments for the fd passing Stefan Hajnoczi

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