[PATCH] fixup! mshv: SynIC port and connection hypercalls
From: Wei Liu
Date: Tue Jun 29 2021 - 08:58:47 EST
Signed-off-by: Wei Liu <wei.liu@xxxxxxxxxx>
---
drivers/hv/hv_call.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/hv/hv_call.c b/drivers/hv/hv_call.c
index d5cdbe4e93da..30aefcbdda85 100644
--- a/drivers/hv/hv_call.c
+++ b/drivers/hv/hv_call.c
@@ -797,7 +797,7 @@ hv_call_create_port(u64 port_partition_id, union hv_port_id port_id,
if (status != HV_STATUS_INSUFFICIENT_MEMORY) {
pr_err("%s: %s\n",
__func__, hv_status_to_string(status));
- ret = -hv_status_to_errno(status);
+ ret = hv_status_to_errno(status);
break;
}
ret = hv_call_deposit_pages(NUMA_NO_NODE,
@@ -826,7 +826,7 @@ hv_call_delete_port(u64 port_partition_id, union hv_port_id port_id)
if (status != HV_STATUS_SUCCESS) {
pr_err("%s: %s\n", __func__, hv_status_to_string(status));
- return -hv_status_to_errno(status);
+ return hv_status_to_errno(status);
}
return 0;
@@ -866,7 +866,7 @@ hv_call_connect_port(u64 port_partition_id, union hv_port_id port_id,
if (status != HV_STATUS_INSUFFICIENT_MEMORY) {
pr_err("%s: %s\n",
__func__, hv_status_to_string(status));
- ret = -hv_status_to_errno(status);
+ ret = hv_status_to_errno(status);
break;
}
ret = hv_call_deposit_pages(NUMA_NO_NODE,
@@ -896,7 +896,7 @@ hv_call_disconnect_port(u64 connection_partition_id,
if (status != HV_STATUS_SUCCESS) {
pr_err("%s: %s\n", __func__, hv_status_to_string(status));
- return -hv_status_to_errno(status);
+ return hv_status_to_errno(status);
}
return 0;
@@ -918,7 +918,7 @@ hv_call_notify_port_ring_empty(u32 sint_index)
if (status != HV_STATUS_SUCCESS) {
pr_err("%s: %s\n", __func__, hv_status_to_string(status));
- return -hv_status_to_errno(status);
+ return hv_status_to_errno(status);
}
return 0;
--
2.30.2