Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197288
b: refs/heads/master
c: 75910f2
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed May 11, 2010
1 parent fb942ac commit f672efe
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 1e19c054434c7d3ad618129c2ff5c3d81efa6949
refs/heads/master: 75910f236a30bded00f078cab994f35a7171c39b
8 changes: 7 additions & 1 deletion trunk/drivers/staging/hv/ChannelMgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,9 +753,15 @@ int VmbusChannelRequestOffers(void)
msgInfo = kmalloc(sizeof(*msgInfo) +
sizeof(struct vmbus_channel_message_header),
GFP_KERNEL);
ASSERT(msgInfo != NULL);
if (!msgInfo)
return -ENOMEM;

msgInfo->WaitEvent = osd_WaitEventCreate();
if (!msgInfo->WaitEvent) {
kfree(msgInfo);
return -ENOMEM;
}

msg = (struct vmbus_channel_message_header *)msgInfo->Msg;

msg->MessageType = ChannelMessageRequestOffers;
Expand Down

0 comments on commit f672efe

Please sign in to comment.