Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259467
b: refs/heads/master
c: e9a27a9
h: refs/heads/master
i:
  259465: 75f9069
  259463: a7a2738
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent fa19ab0 commit 9f61716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 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: f9f1db832b6d04303f443a7f941367355844678a
refs/heads/master: e9a27a9f9ef18826030f6d50efde0dc68b7d1be2
10 changes: 1 addition & 9 deletions trunk/drivers/staging/hv/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,22 +549,15 @@ EXPORT_SYMBOL_GPL(vmbus_teardown_gpadl);
void vmbus_close(struct vmbus_channel *channel)
{
struct vmbus_channel_close_channel *msg;
struct vmbus_channel_msginfo *info;
int ret;

/* Stop callback and cancel the timer asap */
channel->onchannel_callback = NULL;

/* Send a closing message */
info = kmalloc(sizeof(*info) +
sizeof(struct vmbus_channel_close_channel), GFP_KERNEL);
/* FIXME: can't do anything other than return here because the
* function is void */
if (!info)
return;

msg = &channel->close_msg.msg;

msg = (struct vmbus_channel_close_channel *)info->msg;
msg->header.msgtype = CHANNELMSG_CLOSECHANNEL;
msg->child_relid = channel->offermsg.child_relid;

Expand All @@ -583,7 +576,6 @@ void vmbus_close(struct vmbus_channel *channel)
free_pages((unsigned long)channel->ringbuffer_pages,
get_order(channel->ringbuffer_pagecount * PAGE_SIZE));

kfree(info);

}
EXPORT_SYMBOL_GPL(vmbus_close);
Expand Down

0 comments on commit 9f61716

Please sign in to comment.