diff --git a/examples/nvme/perf/perf.c b/examples/nvme/perf/perf.c index a5759441d..d4b636fda 100644 --- a/examples/nvme/perf/perf.c +++ b/examples/nvme/perf/perf.c @@ -866,7 +866,7 @@ int main(int argc, char **argv) worker = worker->next; } - work_fn(g_workers); + rc = work_fn(g_workers); worker = g_workers->next; while (worker != NULL) { @@ -880,5 +880,5 @@ int main(int argc, char **argv) unregister_controllers(); - return 0; + return rc; }