Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197307
b: refs/heads/master
c: 3324fb4
h: refs/heads/master
i:
  197305: 8ba2b37
  197303: b519aaa
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed May 11, 2010
1 parent 7350be0 commit 3de6775
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 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: 1bbdd7a5380239533c4bb648c5d5d9510f12974b
refs/heads/master: 3324fb405340cf52fe361697a86d235587402d9c
13 changes: 11 additions & 2 deletions trunk/drivers/staging/hv/Channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,18 @@ int VmbusChannelOpen(struct vmbus_channel *NewChannel, u32 SendRingBufferSize,
NewChannel->RingBufferPageCount = (SendRingBufferSize +
RecvRingBufferSize) >> PAGE_SHIFT;

RingBufferInit(&NewChannel->Outbound, out, SendRingBufferSize);
ret = RingBufferInit(&NewChannel->Outbound, out, SendRingBufferSize);
if (!ret) {
err = ret;
goto errorout;
}

ret = RingBufferInit(&NewChannel->Inbound, in, RecvRingBufferSize);
if (!ret) {
err = ret;
goto errorout;
}

RingBufferInit(&NewChannel->Inbound, in, RecvRingBufferSize);

/* Establish the gpadl for the ring buffer */
DPRINT_DBG(VMBUS, "Establishing ring buffer's gpadl for channel %p...",
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/staging/hv/RingBuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ u32 GetRingBufferInterruptMask(RING_BUFFER_INFO *rbi)
--*/
int RingBufferInit(RING_BUFFER_INFO *RingInfo, void *Buffer, u32 BufferLen)
{
ASSERT(sizeof(RING_BUFFER) == PAGE_SIZE);
if (sizeof(RING_BUFFER) != PAGE_SIZE)
return -EINVAL;

memset(RingInfo, 0, sizeof(RING_BUFFER_INFO));

Expand Down

0 comments on commit 3de6775

Please sign in to comment.