Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224163
b: refs/heads/master
c: ed9af2e
h: refs/heads/master
i:
  224161: 59d992b
  224159: 6384bc1
v: v3
  • Loading branch information
Tom Herbert authored and David S. Miller committed Nov 15, 2010
1 parent 3c51de9 commit 63f45d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: cc9ff19da9bf76a2f70bcb80225a1c587c162e52
refs/heads/master: ed9af2e839c06c18f721da2c768fbb444c4a10e5
7 changes: 3 additions & 4 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -5136,10 +5136,6 @@ int register_netdevice(struct net_device *dev)
if (ret)
goto out;

ret = netif_alloc_netdev_queues(dev);
if (ret)
goto out;

netdev_init_queues(dev);

/* Init, if this function is available */
Expand Down Expand Up @@ -5599,6 +5595,8 @@ struct net_device *alloc_netdev_mq(int sizeof_priv, const char *name,

dev->num_tx_queues = queue_count;
dev->real_num_tx_queues = queue_count;
if (netif_alloc_netdev_queues(dev))
goto free_pcpu;

#ifdef CONFIG_RPS
dev->num_rx_queues = queue_count;
Expand All @@ -5619,6 +5617,7 @@ struct net_device *alloc_netdev_mq(int sizeof_priv, const char *name,

free_pcpu:
free_percpu(dev->pcpu_refcnt);
kfree(dev->_tx);
free_p:
kfree(p);
return NULL;
Expand Down

0 comments on commit 63f45d0

Please sign in to comment.