projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add 'allow_mounted_write' option
[fio.git]
/
eta.c
diff --git
a/eta.c
b/eta.c
index a90f1fb4763758eaedc9130036a2d60b720fc9bc..e458457a902f4df3fc3e6642c402abf6148c7016 100644
(file)
--- a/
eta.c
+++ b/
eta.c
@@
-6,6
+6,7
@@
#include <string.h>
#include "fio.h"
#include <string.h>
#include "fio.h"
+#include "lib/pow2.h"
static char __run_str[REAL_MAX_JOBS + 1];
static char run_str[__THREAD_RUNSTR_SZ(REAL_MAX_JOBS)];
static char __run_str[REAL_MAX_JOBS + 1];
static char run_str[__THREAD_RUNSTR_SZ(REAL_MAX_JOBS)];
@@
-572,6
+573,8
@@
struct jobs_eta *get_jobs_eta(int force, size_t *size)
*size = sizeof(*je) + THREAD_RUNSTR_SZ;
je = malloc(*size);
*size = sizeof(*je) + THREAD_RUNSTR_SZ;
je = malloc(*size);
+ if (!je)
+ return NULL;
memset(je, 0, *size);
if (!calc_thread_status(je, force)) {
memset(je, 0, *size);
if (!calc_thread_status(je, force)) {