Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104874
b: refs/heads/master
c: 7943986
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jul 21, 2008
1 parent edb0a21 commit 474db77
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 847499ce71bdcc8fc542062df6ebed3e596608dd
refs/heads/master: 7943986ca1138ac99597b1aa4dc893012dcfdc08
4 changes: 2 additions & 2 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -4207,7 +4207,7 @@ struct net_device *alloc_netdev_mq(int sizeof_priv, const char *name,
{
struct netdev_queue *tx;
struct net_device *dev;
int alloc_size;
size_t alloc_size;
void *p;

BUG_ON(strlen(name) >= sizeof(dev->name));
Expand All @@ -4227,7 +4227,7 @@ struct net_device *alloc_netdev_mq(int sizeof_priv, const char *name,
return NULL;
}

tx = kzalloc(sizeof(struct netdev_queue) * queue_count, GFP_KERNEL);
tx = kcalloc(queue_count, sizeof(struct netdev_queue), GFP_KERNEL);
if (!tx) {
printk(KERN_ERR "alloc_netdev: Unable to allocate "
"tx qdiscs.\n");
Expand Down

0 comments on commit 474db77

Please sign in to comment.