eta.c: check malloc return code

Check the malloc return code in get_jobs_eta.

Signed-off-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/eta.c b/eta.c
index a90f1fb..167bf5f 100644
--- a/eta.c
+++ b/eta.c
@@ -572,6 +572,8 @@
 
 	*size = sizeof(*je) + THREAD_RUNSTR_SZ;
 	je = malloc(*size);
+	if (!je)
+		return NULL;
 	memset(je, 0, *size);
 
 	if (!calc_thread_status(je, force)) {