ivshmem: initialize max_peer to -1
commit95e7c8a0f690f9a0c8b70fd1a4de60bd944371b8
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 25 Jun 2015 11:49:09 +0000 (25 13:49 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 Oct 2015 16:02:48 +0000 (24 18:02 +0200)
tree537a4b4c8f4d31d6fad96fdd244ab9dd815abf63
parentd8a5da075a919f7b42f2182cc55f5d3e7e60b264
ivshmem: initialize max_peer to -1

There is no peer when device is initialized, do not let doorbell for
inexisting peer 0.

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