From 01b81f174e73d3d65e1e75501b198da47e506fbe Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 7 Nov 2016 13:37:50 -0800 Subject: [PATCH] criu: use xmalloc() 1. Make sure to use xmalloc() where an error message makes sense 2. Make sure to not ignore if NULL is returned travis-ci: success for Assorted nitpicks Signed-off-by: Kir Kolyshkin Signed-off-by: Pavel Emelyanov --- criu/autofs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/criu/autofs.c b/criu/autofs.c index 6adc37859..151980d63 100644 --- a/criu/autofs.c +++ b/criu/autofs.c @@ -290,9 +290,8 @@ static int autofs_revisit_options(struct mount_info *pm) char *str; int ret = -ENOMEM; - str = malloc(1024); + str = xmalloc(1024); if (!str) { - pr_err("failed to allocate\n"); return -ENOMEM; }