ivshmem: do not keep shm_fd open
commitf689d2811a36894618087e1e2cc3ade78e758e94
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 29 Jun 2015 22:04:19 +0000 (30 00:04 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 26 Oct 2015 09:19:53 +0000 (26 10:19 +0100)
tree832e819095bd9685e5f53f9f34d08946c73216fb
parentddef6a0d68f641ca89466c697d191d07b7e6718c
ivshmem: do not keep shm_fd open

Remove shm_fd from device state, closing it as early as possible to avoid leaks.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
hw/misc/ivshmem.c