Re: [PATCH v2 07/11] chardev: fix qemu_chr_open_fd() being called with fd=-1

2021-08-05 Thread Daniel P . Berrangé
On Wed, Aug 04, 2021 at 07:48:44PM +0400, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > The "file" chardev may call qemu_chr_open_fd() with fd_in=-1. This may > cause invalid system calls, as the QIOChannel is assumed to be properly > initialized later on. > > Signed-off-by: M

[PATCH v2 07/11] chardev: fix qemu_chr_open_fd() being called with fd=-1

2021-08-04 Thread marcandre . lureau
From: Marc-André Lureau The "file" chardev may call qemu_chr_open_fd() with fd_in=-1. This may cause invalid system calls, as the QIOChannel is assumed to be properly initialized later on. Signed-off-by: Marc-André Lureau --- chardev/char-fd.c | 26 +- 1 file changed, 1