commit | 46fe3ff6ea3e7a642b8545c0322ef5df873bd560 | [log] [tgz] |
---|---|---|
author | Marc-André Lureau <marcandre.lureau@redhat.com> | Fri Jul 23 13:54:54 2021 +0400 |
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | Thu Aug 05 16:15:33 2021 +0400 |
tree | 11fd82d6cd1325fd941c75d2f3db5e1beaa1b6a7 | |
parent | bb2b058f1a4e4fe9031133f2f7876fb12b2104d7 [diff] |
chardev: fix qemu_chr_open_fd() being called with fd=-1 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 <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>