From 32b5aa76e04c48e1c914359287ecd39e73e5b3fc Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Sat, 7 Apr 2012 00:22:00 +0400 Subject: [PATCH] dump: return a negative value in case of error Signed-off-by: Andrey Vagin Signed-off-by: Pavel Emelyanov --- cr-dump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cr-dump.c b/cr-dump.c index df58cc80b..90d828a67 100644 --- a/cr-dump.c +++ b/cr-dump.c @@ -1394,6 +1394,7 @@ static int dump_one_task(const struct pstree_item *item) parasite_ctl = parasite_infect_seized(pid, &vma_area_list); if (!parasite_ctl) { + ret = -1; pr_err("Can't infect (pid: %d) with parasite\n", pid); goto err; }