Skip to content

Commit

Permalink
Staging: hv: netvsc: call vmbus_teardown_gpadl directly
Browse files Browse the repository at this point in the history
Don't do the interface indirection, it's not needed at all.

Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Oct 21, 2010
1 parent 18726d7 commit 314bf1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/staging/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "logging.h"
#include "netvsc.h"
#include "rndis_filter.h"
#include "channel.h"


/* Globals */
Expand Down Expand Up @@ -468,9 +469,8 @@ static int NetVscDestroyReceiveBuffer(struct netvsc_device *NetDevice)
if (NetDevice->ReceiveBufferGpadlHandle) {
DPRINT_INFO(NETVSC, "Tearing down receive buffer's GPADL...");

ret = NetDevice->Device->Driver->VmbusChannelInterface.TeardownGpadl(
NetDevice->Device,
NetDevice->ReceiveBufferGpadlHandle);
ret = vmbus_teardown_gpadl(NetDevice->Device->context,
NetDevice->ReceiveBufferGpadlHandle);

/* If we failed here, we might as well return and have a leak rather than continue and a bugchk */
if (ret != 0) {
Expand Down Expand Up @@ -540,8 +540,8 @@ static int NetVscDestroySendBuffer(struct netvsc_device *NetDevice)
/* Teardown the gpadl on the vsp end */
if (NetDevice->SendBufferGpadlHandle) {
DPRINT_INFO(NETVSC, "Tearing down send buffer's GPADL...");

ret = NetDevice->Device->Driver->VmbusChannelInterface.TeardownGpadl(NetDevice->Device, NetDevice->SendBufferGpadlHandle);
ret = vmbus_teardown_gpadl(NetDevice->Device->context,
NetDevice->SendBufferGpadlHandle);

/*
* If we failed here, we might as well return and have a leak
Expand Down

0 comments on commit 314bf1d

Please sign in to comment.