From: Andreas Färber <afaer...@suse.de> Reported-by: Stefan Hajnoczi <stefa...@redhat.com> Cc: qemu-sta...@nongnu.org Signed-off-by: Andreas Färber <afaer...@suse.de> Reviewed-by: Michael S. Tsirkin <m...@redhat.com> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> (cherry picked from commit 3a31cff11203bf62ebafa6d74b1fcf2aba345eed) Signed-off-by: Michael Roth <mdr...@linux.vnet.ibm.com> --- hw/misc/ivshmem.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index c3dc5c3..7252f64 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -508,6 +508,7 @@ static void ivshmem_read(void *opaque, const uint8_t *buf, int size) if (incoming_fd == -1) { fprintf(stderr, "could not allocate file descriptor %s\n", strerror(errno)); + close(tmp_fd); return; } -- 1.9.1