diff --git a/src/proxy.c b/src/proxy.c index 0dae5914..c8fcdaa6 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -498,17 +498,16 @@ int proxy_process(ProxyRequest *request, ProxyReply *reply) break; case P_NVME_INIT: - if (!nvme_init()) - reply->retval = -1; + reply->retval = nvme_init(); break; case P_NVME_SHUTDOWN: nvme_shutdown(); break; case P_NVME_READ: - nvme_read(request->args[0], request->args[1], (void *)request->args[2]); + reply->retval = nvme_read(request->args[0], request->args[1], (void *)request->args[2]); break; case P_NVME_FLUSH: - nvme_flush(request->args[0]); + reply->retval = nvme_flush(request->args[0]); break; case P_MCC_HV_UNMAP_CARVEOUTS: