ivshmem: Fix fd leak on error
commit3a31cff11203bf62ebafa6d74b1fcf2aba345eed
authorAndreas Färber <afaerber@suse.de>
Mon, 15 Sep 2014 16:40:08 +0000 (15 18:40 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 Oct 2014 16:02:14 +0000 (31 17:02 +0100)
treef6db25f2720cdf55433af6b27f69a4718f581243
parent34bc07c5282a631c2663ae1ded0a186f46f64612
ivshmem: Fix fd leak on error

Reported-by: Stefan Hajnoczi <stefanha@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/misc/ivshmem.c