[Devel] [trivial PATCH] cr: fix undefined value

Serge E. Hallyn serue at us.ibm.com
Tue Mar 24 12:12:23 PDT 2009


ret can be used undefined at bottom

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

diff --git a/checkpoint/ckpt_mem.c b/checkpoint/ckpt_mem.c
index 7cfeac3..b1b50b5 100644
--- a/checkpoint/ckpt_mem.c
+++ b/checkpoint/ckpt_mem.c
@@ -525,7 +525,7 @@ static int cr_write_shared_vma_contents(struct cr_ctx *ctx,
 {
 	struct inode *inode;
 	unsigned long end;
-	int ret;
+	int ret = -EINVAL;
 
 	/*
 	 * Citing mmap(2): "Updates to the mapping are visible to other
-- 
1.6.1

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




More information about the Devel mailing list