From: Marc-André Lureau Date: Tue, 23 Jun 2015 11:34:09 +0000 (+0200) Subject: ivshmem: print error on invalid peer id X-Git-Tag: v2.5.0-rc0~48^2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffa99afd6e4d354cdfae44cc43a2ca7ef056eb35;p=thirdparty%2Fqemu.git 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 --- diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index d7a00bd3836..6ee48819975 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; }