diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-15 12:48:29 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:47 -0700 |
commit | 8c69f52ab3d918be9d91c8202e5321421876ea50 (patch) | |
tree | 89f7e7a1cf1bfaee3e18b5f0ad72a2f9f0f84432 /drivers/staging/hv/NetVsc.c | |
parent | 0a72f3cf9f53ae0f4f1c6e05bb081d99b5d72db2 (diff) |
Staging: hv: osd: remove MemFree wrapper
Use the "real" kfree call instead of a wrapper function.
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/NetVsc.c')
-rw-r--r-- | drivers/staging/hv/NetVsc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/hv/NetVsc.c b/drivers/staging/hv/NetVsc.c index 3fb44cd895d..a915599e1c2 100644 --- a/drivers/staging/hv/NetVsc.c +++ b/drivers/staging/hv/NetVsc.c @@ -139,7 +139,7 @@ static inline void FreeNetDevice(NETVSC_DEVICE *Device) { ASSERT(Device->RefCount == 0); Device->Device->Extension = NULL; - MemFree(Device); + kfree(Device); } @@ -563,7 +563,7 @@ NetVscDestroyReceiveBuffer( if (NetDevice->ReceiveSections) { - MemFree(NetDevice->ReceiveSections); + kfree(NetDevice->ReceiveSections); NetDevice->ReceiveSections = NULL; NetDevice->ReceiveSectionCount = 0; } @@ -873,7 +873,7 @@ Cleanup: { entry = REMOVE_HEAD_LIST(&netDevice->ReceivePacketList); packet = CONTAINING_RECORD(entry, NETVSC_PACKET, ListEntry); - MemFree(packet); + kfree(packet); } SpinlockClose(netDevice->ReceivePacketListLock); @@ -949,7 +949,7 @@ NetVscOnDeviceRemove( entry = REMOVE_HEAD_LIST(&netDevice->ReceivePacketList); netvscPacket = CONTAINING_RECORD(entry, NETVSC_PACKET, ListEntry); - MemFree(netvscPacket); + kfree(netvscPacket); } SpinlockClose(netDevice->ReceivePacketListLock); @@ -1456,7 +1456,7 @@ NetVscOnChannelCallback( // reset if (bufferlen > netPacketSize) { - MemFree(buffer); + kfree(buffer); buffer = packet; bufferlen = netPacketSize; @@ -1469,7 +1469,7 @@ NetVscOnChannelCallback( // reset if (bufferlen > netPacketSize) { - MemFree(buffer); + kfree(buffer); buffer = packet; bufferlen = netPacketSize; |