[tip:tools/kvm] kvm tools, vesa: Fix 'ah' access in int10_vesa()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  e2352719c315d0bf8674798f28631bf73cc6e583
Gitweb:     http://git.kernel.org/tip/e2352719c315d0bf8674798f28631bf73cc6e583
Author:     Pekka Enberg <penberg@xxxxxxxxxx>
AuthorDate: Fri, 3 Jun 2011 22:30:06 +0300
Committer:  Pekka Enberg <penberg@xxxxxxxxxx>
CommitDate: Fri, 3 Jun 2011 23:26:27 +0300

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 <gorcunov@xxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: John Floren <john@xxxxxxxxxxx>
Cc: Sasha Levin <levinsasha928@xxxxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx>
---
 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:
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux