[trivial PATCH] cr: fix undefined value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ret can be used undefined at bottom

Signed-off-by: Serge E. Hallyn <serue@xxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux