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/ChannelMgmt.c | |
parent | 0a72f3cf9f53ae0f4f1c6e05bb081d99b5d72db2 (diff) | |
download | op-kernel-dev-8c69f52ab3d918be9d91c8202e5321421876ea50.zip op-kernel-dev-8c69f52ab3d918be9d91c8202e5321421876ea50.tar.gz |
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/ChannelMgmt.c')
-rw-r--r-- | drivers/staging/hv/ChannelMgmt.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/hv/ChannelMgmt.c b/drivers/staging/hv/ChannelMgmt.c index 44bc61e..a19ff89 100644 --- a/drivers/staging/hv/ChannelMgmt.c +++ b/drivers/staging/hv/ChannelMgmt.c @@ -152,7 +152,7 @@ VMBUS_CHANNEL* AllocVmbusChannel(void) channel->InboundLock = SpinlockCreate(); if (!channel->InboundLock) { - MemFree(channel); + kfree(channel); return NULL; } @@ -160,7 +160,7 @@ VMBUS_CHANNEL* AllocVmbusChannel(void) if (!channel->PollTimer) { SpinlockClose(channel->InboundLock); - MemFree(channel); + kfree(channel); return NULL; } @@ -170,7 +170,7 @@ VMBUS_CHANNEL* AllocVmbusChannel(void) { TimerClose(channel->PollTimer); SpinlockClose(channel->InboundLock); - MemFree(channel); + kfree(channel); return NULL; } @@ -196,7 +196,7 @@ static inline void ReleaseVmbusChannel(void* Context) WorkQueueClose(channel->ControlWQ); DPRINT_DBG(VMBUS, "channel released (%p)", channel); - MemFree(channel); + kfree(channel); DPRINT_EXIT(VMBUS); } @@ -691,7 +691,7 @@ VmbusOnChannelMessage( { DPRINT_ERR(VMBUS, "Received invalid channel message type %d size %d", hdr->MessageType, size); PrintBytes((unsigned char *)msg->u.Payload, size); - MemFree(msg); + kfree(msg); return; } @@ -705,7 +705,7 @@ VmbusOnChannelMessage( } // Free the msg that was allocated in VmbusOnMsgDPC() - MemFree(msg); + kfree(msg); DPRINT_EXIT(VMBUS); } @@ -764,7 +764,7 @@ Cleanup: if (msgInfo) { WaitEventClose(msgInfo->WaitEvent); - MemFree(msgInfo); + kfree(msgInfo); } DPRINT_EXIT(VMBUS); |