[Devel] [PATCH 8/9] fix potential use-before-set ret in arch/x86/vdso/vma.c

serue at us.ibm.com serue at us.ibm.com
Mon Feb 8 18:00:05 PST 2010


From: Serge E. Hallyn <serue at us.ibm.com>

(should be folded into
	"c/r: extend arch_setup_additional_pages()"
)

Signed-off-by: Serge E. Hallyn <serue at us.ibm.com>
---
 arch/x86/vdso/vma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/vdso/vma.c b/arch/x86/vdso/vma.c
index 393b22a..b10ed32 100644
--- a/arch/x86/vdso/vma.c
+++ b/arch/x86/vdso/vma.c
@@ -104,7 +104,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm,
 {
 	struct mm_struct *mm = current->mm;
 	unsigned long addr;
-	int ret;
+	int ret = -EINVAL;
 
 	if (!vdso_enabled)
 		return 0;
-- 
1.6.0.4

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list