Skip to contentSkip to conversation

I386 sysenter arch pages fix.patch

PATCH In review Zachary Amsden 2 participants 2 messages Apr 10, 2007 virtio core

lore
Share & tools
lore
#0 lore raw

PATCH 1/10 I386 sysenter arch pages fix.patch

In compat mode, the return value here was uninitialized.

arch/i386/kernel/sysenter.c +1 -1
diff -r 1fda49a076ed arch/i386/kernel/sysenter.c
@@ -254,7 +254,7 @@ int arch_setup_additional_pages(struct l
 {
 	struct mm_struct *mm = current->mm;
 	unsigned long addr;
-	int ret;
+	int ret = 0;
 	bool compat;
 
 	down_write(&mm->mmap_sem);
#1 lore raw
Quoted 8 lines · Zachary Amsden

In compat mode, the return value here was uninitialized.

diff -r 1fda49a076ed arch/i386/kernel/sysenter.c

arch/i386/kernel/sysenter.c int arch_setup_additional_pages(struct l

Quoted 9 lines
arch/i386/kernel/sysenter.c +1 -2
@@ -254,7 +254,7 @@ int arch_setup_additional_pages(struct l
 {
 	struct mm_struct *mm = current->mm;
 	unsigned long addr;
-	int ret;
+	int ret = 0;
 	bool compat;
 
 	down_write(&mm->mmap_sem);
-

Hm, OK, but what about just zeroing it in the compat leg of the if()?

J