This patch fixes access to 'ah' in int10_vesa() by masking the high bits.

Cc: Ingo Molnar <mi...@elte.hu>
Cc: Cyrill Gorcunov <gorcu...@gmail.com>
Cc: John Floren <j...@jfloren.net>
Cc: Sasha Levin <levinsasha...@gmail.com>
Signed-off-by: Pekka Enberg <penb...@kernel.org>
---
 tools/kvm/bios/int10.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/kvm/bios/int10.c b/tools/kvm/bios/int10.c
index f7fecac..498a93a 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:
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to