]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools, vesa: Fix 'ah' access in int10_vesa()
authorPekka Enberg <penberg@kernel.org>
Fri, 3 Jun 2011 19:30:06 +0000 (22:30 +0300)
committerPekka Enberg <penberg@kernel.org>
Fri, 3 Jun 2011 20:26:27 +0000 (23:26 +0300)
This patch fixes access to 'ah' in int10_vesa() by masking the high bits.

Acked-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: John Floren <john@jfloren.net>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/bios/int10.c

index f7fecac879bb5a36595ed551669807c33b6d31b9..498a93afeef665ac3b60a20cc1c61c081fb20095 100644 (file)
@@ -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: