REMOVE_ENTRY_LIST(&openInfo->MsgListEntry);
spin_unlock_irqrestore(&gVmbusConnection.channelmsg_lock, flags);
- WaitEventClose(openInfo->WaitEvent);
+ kfree(openInfo->WaitEvent);
kfree(openInfo);
DPRINT_EXIT(VMBUS);
REMOVE_ENTRY_LIST(&msgInfo->MsgListEntry);
spin_unlock_irqrestore(&gVmbusConnection.channelmsg_lock, flags);
- WaitEventClose(msgInfo->WaitEvent);
+ kfree(msgInfo->WaitEvent);
kfree(msgInfo);
DPRINT_EXIT(VMBUS);
REMOVE_ENTRY_LIST(&info->MsgListEntry);
spin_unlock_irqrestore(&gVmbusConnection.channelmsg_lock, flags);
- WaitEventClose(info->WaitEvent);
+ kfree(info->WaitEvent);
kfree(info);
DPRINT_EXIT(VMBUS);
Cleanup:
if (msgInfo)
{
- WaitEventClose(msgInfo->WaitEvent);
+ kfree(msgInfo->WaitEvent);
kfree(msgInfo);
}
}
- WaitEventClose(msgInfo->WaitEvent);
+ kfree(msgInfo->WaitEvent);
kfree(msgInfo);
DPRINT_EXIT(VMBUS);
if (msgInfo)
{
if (msgInfo->WaitEvent)
- WaitEventClose(msgInfo->WaitEvent);
+ kfree(msgInfo->WaitEvent);
kfree(msgInfo);
}
if (netDevice)
{
- WaitEventClose(netDevice->ChannelInitEvent);
+ kfree(netDevice->ChannelInitEvent);
while (!IsListEmpty(&netDevice->ReceivePacketList))
{
kfree(netvscPacket);
}
- WaitEventClose(netDevice->ChannelInitEvent);
+ kfree(netDevice->ChannelInitEvent);
FreeNetDevice(netDevice);
DPRINT_EXIT(NETVSC);
REMOVE_ENTRY_LIST(&Request->ListEntry);
spin_unlock_irqrestore(&Device->request_lock, flags);
- WaitEventClose(Request->WaitEvent);
+ kfree(Request->WaitEvent);
kfree(Request);
}
Cleanup:
if (request->WaitEvent)
{
- WaitEventClose(request->WaitEvent);
+ kfree(request->WaitEvent);
request->WaitEvent = NULL;
}
/* FIXME: Add a timeout */
WaitEventWait(request->WaitEvent);
- WaitEventClose(request->WaitEvent);
+ kfree(request->WaitEvent);
DPRINT_INFO(STORVSC, "host adapter reset completed");
/*
extern void TimerStart(struct osd_timer *t, u32 expirationInUs);
extern struct osd_waitevent *WaitEventCreate(void);
-extern void WaitEventClose(struct osd_waitevent *waitEvent);
extern void WaitEventSet(struct osd_waitevent *waitEvent);
extern int WaitEventWait(struct osd_waitevent *waitEvent);
return wait;
}
-void WaitEventClose(struct osd_waitevent *waitEvent)
-{
- kfree(waitEvent);
-}
-
void WaitEventSet(struct osd_waitevent *waitEvent)
{
waitEvent->condition = 1;