Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281224
b: refs/heads/master
c: c181320
h: refs/heads/master
v: v3
  • Loading branch information
Haiyang Zhang authored and Greg Kroah-Hartman committed Dec 1, 2011
1 parent da4c6a9 commit 2458d3c
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 4bd8b4de6f806f1429d23a2f6e2549ed0e8bc49b
refs/heads/master: c18132005e711c07523d8c6602e5b2266ab9a0f2
8 changes: 5 additions & 3 deletions trunk/drivers/net/hyperv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,11 @@ static int netvsc_init_recv_buf(struct hv_device *device)
net_device->recv_section_cnt = init_packet->msg.
v1_msg.send_recv_buf_complete.num_sections;

net_device->recv_section = kmemdup(init_packet->msg.v1_msg.send_recv_buf_complete.sections,
net_device->recv_section_cnt * sizeof(struct nvsp_1_receive_buffer_section),
GFP_KERNEL);
net_device->recv_section = kmemdup(
init_packet->msg.v1_msg.send_recv_buf_complete.sections,
net_device->recv_section_cnt *
sizeof(struct nvsp_1_receive_buffer_section),
GFP_KERNEL);
if (net_device->recv_section == NULL) {
ret = -EINVAL;
goto cleanup;
Expand Down

0 comments on commit 2458d3c

Please sign in to comment.