Explorar o código

[PATCH] i386: In compat mode, the return value here was uninitialized.

Signed-off-by: Zachary Amsden <zach@vmware.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Zachary Amsden %!s(int64=18) %!d(string=hai) anos
pai
achega
752783c050
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/i386/kernel/sysenter.c

+ 1 - 1
arch/i386/kernel/sysenter.c

@@ -268,7 +268,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int exstack)
 {
 	struct mm_struct *mm = current->mm;
 	unsigned long addr;
-	int ret;
+	int ret = 0;
 	bool compat;
 
 	down_write(&mm->mmap_sem);