From e2352719c315d0bf8674798f28631bf73cc6e583 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Fri, 3 Jun 2011 22:30:06 +0300 Subject: [PATCH] kvm tools, vesa: Fix 'ah' access in int10_vesa() This patch fixes access to 'ah' in int10_vesa() by masking the high bits. Acked-by: Cyrill Gorcunov Cc: Ingo Molnar Cc: John Floren Cc: Sasha Levin Signed-off-by: Pekka Enberg --- tools/kvm/bios/int10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kvm/bios/int10.c b/tools/kvm/bios/int10.c index f7fecac879bb..498a93afeef6 100644 --- a/tools/kvm/bios/int10.c +++ b/tools/kvm/bios/int10.c @@ -131,7 +131,7 @@ static void int10_vesa(struct int10_args *args) { u8 al; - al = args->eax; + al = args->eax & 0xff; switch (al) { case 0x00: -- 2.39.5