diff options
Diffstat (limited to 'drivers/staging/hv/netvsc.c')
-rw-r--r-- | drivers/staging/hv/netvsc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index 4c29c31ad3a..1c15f9a1a12 100644 --- a/drivers/staging/hv/netvsc.c +++ b/drivers/staging/hv/netvsc.c | |||
@@ -240,7 +240,7 @@ static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device) | |||
240 | * channel. Note: This call uses the vmbus connection rather | 240 | * channel. Note: This call uses the vmbus connection rather |
241 | * than the channel to establish the gpadl handle. | 241 | * than the channel to establish the gpadl handle. |
242 | */ | 242 | */ |
243 | ret = vmbus_establish_gpadl(Device->context, netDevice->ReceiveBuffer, | 243 | ret = vmbus_establish_gpadl(Device->channel, netDevice->ReceiveBuffer, |
244 | netDevice->ReceiveBufferSize, | 244 | netDevice->ReceiveBufferSize, |
245 | &netDevice->ReceiveBufferGpadlHandle); | 245 | &netDevice->ReceiveBufferGpadlHandle); |
246 | if (ret != 0) { | 246 | if (ret != 0) { |
@@ -368,7 +368,7 @@ static int NetVscInitializeSendBufferWithNetVsp(struct hv_device *Device) | |||
368 | * channel. Note: This call uses the vmbus connection rather | 368 | * channel. Note: This call uses the vmbus connection rather |
369 | * than the channel to establish the gpadl handle. | 369 | * than the channel to establish the gpadl handle. |
370 | */ | 370 | */ |
371 | ret = vmbus_establish_gpadl(Device->context, netDevice->SendBuffer, | 371 | ret = vmbus_establish_gpadl(Device->channel, netDevice->SendBuffer, |
372 | netDevice->SendBufferSize, | 372 | netDevice->SendBufferSize, |
373 | &netDevice->SendBufferGpadlHandle); | 373 | &netDevice->SendBufferGpadlHandle); |
374 | if (ret != 0) { | 374 | if (ret != 0) { |
@@ -467,7 +467,7 @@ static int NetVscDestroyReceiveBuffer(struct netvsc_device *NetDevice) | |||
467 | if (NetDevice->ReceiveBufferGpadlHandle) { | 467 | if (NetDevice->ReceiveBufferGpadlHandle) { |
468 | DPRINT_INFO(NETVSC, "Tearing down receive buffer's GPADL..."); | 468 | DPRINT_INFO(NETVSC, "Tearing down receive buffer's GPADL..."); |
469 | 469 | ||
470 | ret = vmbus_teardown_gpadl(NetDevice->Device->context, | 470 | ret = vmbus_teardown_gpadl(NetDevice->Device->channel, |
471 | NetDevice->ReceiveBufferGpadlHandle); | 471 | NetDevice->ReceiveBufferGpadlHandle); |
472 | 472 | ||
473 | /* If we failed here, we might as well return and have a leak rather than continue and a bugchk */ | 473 | /* If we failed here, we might as well return and have a leak rather than continue and a bugchk */ |
@@ -538,7 +538,7 @@ static int NetVscDestroySendBuffer(struct netvsc_device *NetDevice) | |||
538 | /* Teardown the gpadl on the vsp end */ | 538 | /* Teardown the gpadl on the vsp end */ |
539 | if (NetDevice->SendBufferGpadlHandle) { | 539 | if (NetDevice->SendBufferGpadlHandle) { |
540 | DPRINT_INFO(NETVSC, "Tearing down send buffer's GPADL..."); | 540 | DPRINT_INFO(NETVSC, "Tearing down send buffer's GPADL..."); |
541 | ret = vmbus_teardown_gpadl(NetDevice->Device->context, | 541 | ret = vmbus_teardown_gpadl(NetDevice->Device->channel, |
542 | NetDevice->SendBufferGpadlHandle); | 542 | NetDevice->SendBufferGpadlHandle); |
543 | 543 | ||
544 | /* | 544 | /* |