mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-25 08:00:17 +00:00
proxy: Pass through nvme retvals properly
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
191cb157fb
commit
bb7c7dd0ce
1 changed files with 3 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue