[CRIU] [PATCH] eventpoll,proc: avoid an uninitialized return code

Andrew Vagin avagin at openvz.org
Wed Sep 12 09:54:47 EDT 2012


Signed-off-by: Andrew Vagin <avagin at openvz.org>
---
 fs/eventpoll.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/eventpoll.c b/fs/eventpoll.c
index bbed56a..4011af2 100644
--- a/fs/eventpoll.c
+++ b/fs/eventpoll.c
@@ -790,7 +790,7 @@ static int ep_show_fdinfo(struct seq_file *m, struct file *f)
 {
 	struct eventpoll *ep = f->private_data;
 	struct rb_node *rbp;
-	int ret;
+	int ret = 0;
 
 	mutex_lock(&ep->mtx);
 	for (rbp = rb_first(&ep->rbr); rbp; rbp = rb_next(rbp)) {
-- 
1.7.1



More information about the CRIU mailing list