diff options
author | Hervé Poussineau <hpoussin@reactos.org> | 2016-09-15 22:06:23 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-09-28 14:03:18 +0200 |
commit | 06b3611fc2a3001d3940fa3bfa404c679b7d2b13 (patch) | |
tree | 5d5d268d1f31ba73e7df018aff0c1e2ccca44c41 /hw/input/ps2.c | |
parent | 7cfdc02dae0d2ff58c897496cfdbbafc0eda0f3f (diff) | |
download | qemu-06b3611fc2a3001d3940fa3bfa404c679b7d2b13.zip qemu-06b3611fc2a3001d3940fa3bfa404c679b7d2b13.tar.gz qemu-06b3611fc2a3001d3940fa3bfa404c679b7d2b13.tar.bz2 |
ps2: reject unknown commands, instead of blindly accepting them
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Message-id: 1473969987-5890-2-git-send-email-hpoussin@reactos.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/input/ps2.c')
-rw-r--r-- | hw/input/ps2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/input/ps2.c b/hw/input/ps2.c index a8aa36f..00a1792 100644 --- a/hw/input/ps2.c +++ b/hw/input/ps2.c @@ -290,7 +290,7 @@ void ps2_write_keyboard(void *opaque, int val) ps2_queue(&s->common, KBD_REPLY_POR); break; default: - ps2_queue(&s->common, KBD_REPLY_ACK); + ps2_queue(&s->common, KBD_REPLY_RESEND); break; } break; |