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: Tizen_Studio_1.3_Release_p2.3.2~121^2~1^2~110^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ffa99afd6e4d354cdfae44cc43a2ca7ef056eb35;p=sdk%2Femulator%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 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; }