[CRIU] [PATCH 1/4] piegen: fix handle elf returned value

Laurent Dufour ldufour at linux.vnet.ibm.com
Wed Jun 10 06:00:39 PDT 2015


handle elf should return 0 on success.

Signed-off-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>
---
 pie/piegen/elf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pie/piegen/elf.c b/pie/piegen/elf.c
index 3c93b2ce951c..33bc000011b9 100644
--- a/pie/piegen/elf.c
+++ b/pie/piegen/elf.c
@@ -488,7 +488,7 @@ int handle_elf(const piegen_opt_t *opts, void *mem, size_t size)
 		}
 	}
 	pr_out("};\n");
-
+	return 0;
 err:
 	free(sec_hdrs);
 	return -1;
-- 
1.9.1



More information about the CRIU mailing list