From 22c180cb451cbb90803b66106d470320db34b8ce 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 --- bios/int10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bios/int10.c b/bios/int10.c index f7fecac..498a93a 100644 --- a/bios/int10.c +++ b/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: