Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259478
b: refs/heads/master
c: 3a7546d
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent 9195820 commit d3eff0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39594abcd47da2f587804dff2fedbd7ada4670d0
refs/heads/master: 3a7546d934ca210ebeb51b1bb5180a3774cee443
10 changes: 5 additions & 5 deletions trunk/drivers/staging/hv/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ int vmbus_connect(void)

/* Make sure we are not connecting or connected */
if (vmbus_connection.conn_state != DISCONNECTED)
return -1;
return -EISCONN;

/* Initialize the vmbus connection */
vmbus_connection.conn_state = CONNECTING;
vmbus_connection.work_queue = create_workqueue("hv_vmbus_con");
if (!vmbus_connection.work_queue) {
ret = -1;
ret = -ENOMEM;
goto cleanup;
}

Expand All @@ -74,7 +74,7 @@ int vmbus_connect(void)
vmbus_connection.int_page =
(void *)__get_free_pages(GFP_KERNEL|__GFP_ZERO, 0);
if (vmbus_connection.int_page == NULL) {
ret = -1;
ret = -ENOMEM;
goto cleanup;
}

Expand All @@ -90,7 +90,7 @@ int vmbus_connect(void)
vmbus_connection.monitor_pages =
(void *)__get_free_pages((GFP_KERNEL|__GFP_ZERO), 1);
if (vmbus_connection.monitor_pages == NULL) {
ret = -1;
ret = -ENOMEM;
goto cleanup;
}

Expand Down Expand Up @@ -157,7 +157,7 @@ int vmbus_connect(void)
pr_err("Unable to connect, "
"Version %d not supported by Hyper-V\n",
VMBUS_REVISION_NUMBER);
ret = -1;
ret = -ECONNREFUSED;
goto cleanup;
}

Expand Down

0 comments on commit d3eff0f

Please sign in to comment.