From: Pekka Enberg Date: Fri, 3 Jun 2011 19:30:06 +0000 (+0300) Subject: kvm tools, vesa: Fix 'ah' access in int10_vesa() X-Git-Tag: next-20110824~3^2~224 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e2352719c315d0bf8674798f28631bf73cc6e583;p=karo-tx-linux.git 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 --- 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: