From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pekka Enberg Subject: [PATCH 2/2] kvm tools, vesa: Fix 'ah' access in int10_vesa() Date: Fri, 3 Jun 2011 22:37:04 +0300 Message-ID: <1307129824-8396-2-git-send-email-penberg@kernel.org> References: <1307129824-8396-1-git-send-email-penberg@kernel.org> Cc: Pekka Enberg , Ingo Molnar , Cyrill Gorcunov , John Floren , Sasha Levin To: kvm@vger.kernel.org Return-path: Received: from filtteri2.pp.htv.fi ([213.243.153.185]:48617 "EHLO filtteri2.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755704Ab1FCThG (ORCPT ); Fri, 3 Jun 2011 15:37:06 -0400 In-Reply-To: <1307129824-8396-1-git-send-email-penberg@kernel.org> Sender: kvm-owner@vger.kernel.org List-ID: This patch fixes access to 'ah' in int10_vesa() by masking the high bits. Cc: Ingo Molnar Cc: Cyrill Gorcunov Cc: John Floren Cc: Sasha Levin Signed-off-by: Pekka Enberg --- 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