[CRIU] [PATCH] fsnotify: fix exit code of dump_inotify_entry()
Andrey Vagin
avagin at openvz.org
Tue Sep 2 06:55:14 PDT 2014
Return 0 in a success case
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
fsnotify.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fsnotify.c b/fsnotify.c
index 98e0055..c9373c7 100644
--- a/fsnotify.c
+++ b/fsnotify.c
@@ -212,8 +212,7 @@ static int dump_inotify_entry(union fdinfo_entries *e, void *arg)
if (check_open_handle(we->s_dev, we->i_ino, we->f_handle))
goto out;
- if (pb_write_one(fdset_fd(glob_fdset, CR_FD_INOTIFY_WD), we, PB_INOTIFY_WD))
- goto out;
+ ret = pb_write_one(fdset_fd(glob_fdset, CR_FD_INOTIFY_WD), we, PB_INOTIFY_WD);
out:
free_inotify_wd_entry(e);
return ret;
--
1.9.3
More information about the CRIU
mailing list