From ffa99afd6e4d354cdfae44cc43a2ca7ef056eb35 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Tue, 23 Jun 2015 13:34:09 +0200 Subject: ivshmem: print error on invalid peer id The server shouldn't send invalid peer id, so print an error if it's the case. Signed-off-by: Marc-André Lureau Reviewed-by: Claudio Fontana --- hw/misc/ivshmem.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/misc') diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index d7a00bd383..6ee4881997 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -399,6 +399,7 @@ static void close_guest_eventfds(IVShmemState *s, int posn) return; } if (posn < 0 || posn >= s->nb_peers) { + error_report("invalid peer %d", posn); return; } -- cgit v1.2.3-55-g7522