From patchwork Fri Jun 3 19:37:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pekka Enberg X-Patchwork-Id: 848172 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p53JbBjP009681 for ; Fri, 3 Jun 2011 19:37:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755717Ab1FCThH (ORCPT ); Fri, 3 Jun 2011 15:37:07 -0400 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 Received: from localhost (localhost [127.0.0.1]) by filtteri2.pp.htv.fi (Postfix) with ESMTP id 955BE19B434; Fri, 3 Jun 2011 22:37:05 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from smtp5.welho.com ([213.243.153.39]) by localhost (filtteri2.pp.htv.fi [213.243.153.185]) (amavisd-new, port 10024) with ESMTP id Fg1fcf47T3he; Fri, 3 Jun 2011 22:37:05 +0300 (EEST) Received: from localhost.localdomain (cs181148025.pp.htv.fi [82.181.148.25]) by smtp5.welho.com (Postfix) with ESMTP id 3E4AE5BC004; Fri, 3 Jun 2011 22:37:05 +0300 (EEST) From: Pekka Enberg To: kvm@vger.kernel.org Cc: Pekka Enberg , Ingo Molnar , Cyrill Gorcunov , John Floren , Sasha Levin 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> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1307129824-8396-1-git-send-email-penberg@kernel.org> References: <1307129824-8396-1-git-send-email-penberg@kernel.org> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 03 Jun 2011 19:37:13 +0000 (UTC) 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: