summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
66b6c5e)
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>
*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)) {