[PATCH 15/28] In compat mode, the return value here was uninitialized.

Jeremy Fitzhardinge
2007-04-14T21:23:08Z

[-- Attachment #1: i386-sysenter-arch-pages-fix.patch --]
[-- Type: text/plain, Size: 517 bytes --]

From: Zachary Amsden <zach@vmware.com>
Signed-off-by: Zachary Amsden <zach@vmware.com>

---
arch/i386/kernel/sysenter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

===================================================================
--- a/arch/i386/kernel/sysenter.c
+++ b/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);

--