Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162177
b: refs/heads/master
c: 420beac
h: refs/heads/master
i:
  162175: c83c15f
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 96f4f5a commit f4c6b28
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: de65a38406bdf712abc2a845fe1f3db7d1a083ed
refs/heads/master: 420beac4fcc9efd6f7d838ef7cc5693c58c98015
6 changes: 3 additions & 3 deletions trunk/drivers/staging/hv/Channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ VmbusChannelOpen(
REMOVE_ENTRY_LIST(&openInfo->MsgListEntry);
spin_unlock_irqrestore(&gVmbusConnection.channelmsg_lock, flags);

WaitEventClose(openInfo->WaitEvent);
kfree(openInfo->WaitEvent);
kfree(openInfo);

DPRINT_EXIT(VMBUS);
Expand Down Expand Up @@ -596,7 +596,7 @@ VmbusChannelEstablishGpadl(
REMOVE_ENTRY_LIST(&msgInfo->MsgListEntry);
spin_unlock_irqrestore(&gVmbusConnection.channelmsg_lock, flags);

WaitEventClose(msgInfo->WaitEvent);
kfree(msgInfo->WaitEvent);
kfree(msgInfo);

DPRINT_EXIT(VMBUS);
Expand Down Expand Up @@ -658,7 +658,7 @@ VmbusChannelTeardownGpadl(
REMOVE_ENTRY_LIST(&info->MsgListEntry);
spin_unlock_irqrestore(&gVmbusConnection.channelmsg_lock, flags);

WaitEventClose(info->WaitEvent);
kfree(info->WaitEvent);
kfree(info);

DPRINT_EXIT(VMBUS);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/ChannelMgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ VmbusChannelRequestOffers(
Cleanup:
if (msgInfo)
{
WaitEventClose(msgInfo->WaitEvent);
kfree(msgInfo->WaitEvent);
kfree(msgInfo);
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/hv/Connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ VmbusConnect(void)
}


WaitEventClose(msgInfo->WaitEvent);
kfree(msgInfo->WaitEvent);
kfree(msgInfo);
DPRINT_EXIT(VMBUS);

Expand Down Expand Up @@ -183,7 +183,7 @@ VmbusConnect(void)
if (msgInfo)
{
if (msgInfo->WaitEvent)
WaitEventClose(msgInfo->WaitEvent);
kfree(msgInfo->WaitEvent);

kfree(msgInfo);
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/hv/NetVsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ NetVscOnDeviceAdd(

if (netDevice)
{
WaitEventClose(netDevice->ChannelInitEvent);
kfree(netDevice->ChannelInitEvent);

while (!IsListEmpty(&netDevice->ReceivePacketList))
{
Expand Down Expand Up @@ -963,7 +963,7 @@ NetVscOnDeviceRemove(
kfree(netvscPacket);
}

WaitEventClose(netDevice->ChannelInitEvent);
kfree(netDevice->ChannelInitEvent);
FreeNetDevice(netDevice);

DPRINT_EXIT(NETVSC);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/RndisFilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ static inline void PutRndisRequest(RNDIS_DEVICE *Device, RNDIS_REQUEST *Request)
REMOVE_ENTRY_LIST(&Request->ListEntry);
spin_unlock_irqrestore(&Device->request_lock, flags);

WaitEventClose(Request->WaitEvent);
kfree(Request->WaitEvent);
kfree(Request);
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/hv/StorVsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ static int StorVscChannelInit(struct hv_device *Device)
Cleanup:
if (request->WaitEvent)
{
WaitEventClose(request->WaitEvent);
kfree(request->WaitEvent);
request->WaitEvent = NULL;
}

Expand Down Expand Up @@ -678,7 +678,7 @@ StorVscOnHostReset(
/* FIXME: Add a timeout */
WaitEventWait(request->WaitEvent);

WaitEventClose(request->WaitEvent);
kfree(request->WaitEvent);
DPRINT_INFO(STORVSC, "host adapter reset completed");

/*
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/include/osd.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ extern int TimerStop(struct osd_timer *t);
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);

Expand Down
5 changes: 0 additions & 5 deletions trunk/drivers/staging/hv/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,6 @@ struct osd_waitevent *WaitEventCreate(void)
return wait;
}

void WaitEventClose(struct osd_waitevent *waitEvent)
{
kfree(waitEvent);
}

void WaitEventSet(struct osd_waitevent *waitEvent)
{
waitEvent->condition = 1;
Expand Down

0 comments on commit f4c6b28

Please sign in to comment.