From f46c29597cd8960e5b5f5b23331b1c0164dd2c57 Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Mon, 23 Aug 2010 15:51:25 +0530 Subject: auto-virtserial-guest: Add a 'default' target for key switch If using a newer host program than the guest which has a newer key, the host can keep waiting for the guest to respond, and the guest never will.. Signed-off-by: Amit Shah --- auto-virtserial-guest.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auto-virtserial-guest.c b/auto-virtserial-guest.c index 2c84c27..b0faa10 100644 --- a/auto-virtserial-guest.c +++ b/auto-virtserial-guest.c @@ -594,6 +594,9 @@ back_to_open: ret = join_read_thread(gpkt.value); send_report(cfd, ret); break; + default: + send_report(cfd, -ERANGE); + break; } } return 0; -- cgit