Commit 3a6f57cb authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

fsnotify: fix exit code of dump_inotify_entry()

Return 0 in a success case
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d58aafc4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment