Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197289
b: refs/heads/master
c: 7e052d9
h: refs/heads/master
i:
  197287: fb942ac
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed May 11, 2010
1 parent f672efe commit 7d2eb02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 75910f236a30bded00f078cab994f35a7171c39b
refs/heads/master: 7e052d98f2bbcaaaa6d509081d78e600927cfe60
4 changes: 3 additions & 1 deletion trunk/drivers/staging/hv/Channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ int VmbusChannelOpen(struct vmbus_channel *NewChannel, u32 SendRingBufferSize,
/* Allocate the ring buffer */
out = osd_PageAlloc((SendRingBufferSize + RecvRingBufferSize)
>> PAGE_SHIFT);
ASSERT(out);
if (!out)
return -ENOMEM;

ASSERT(((unsigned long)out & (PAGE_SIZE-1)) == 0);

in = (void *)((unsigned long)out + SendRingBufferSize);
Expand Down

0 comments on commit 7d2eb02

Please sign in to comment.