Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247972
b: refs/heads/master
c: 68d5ac2
h: refs/heads/master
v: v3
  • Loading branch information
WANG Cong authored and David S. Miller committed May 23, 2011
1 parent 6b9db5f commit 7348c9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: c4264f27e83968ddfe3f0cfe7a33adfb320e1e42
refs/heads/master: 68d5ac2ed6180567407e4187e206df3ba6466373
3 changes: 1 addition & 2 deletions trunk/net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -3544,13 +3544,12 @@ static int pktgen_add_device(struct pktgen_thread *t, const char *ifname)
return -ENOMEM;

strcpy(pkt_dev->odevname, ifname);
pkt_dev->flows = vmalloc_node(MAX_CFLOWS * sizeof(struct flow_state),
pkt_dev->flows = vzalloc_node(MAX_CFLOWS * sizeof(struct flow_state),
node);
if (pkt_dev->flows == NULL) {
kfree(pkt_dev);
return -ENOMEM;
}
memset(pkt_dev->flows, 0, MAX_CFLOWS * sizeof(struct flow_state));

pkt_dev->removal_mark = 0;
pkt_dev->min_pkt_size = ETH_ZLEN;
Expand Down

0 comments on commit 7348c9d

Please sign in to comment.