projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b9d48f
)
net: remove some unless free on failure in alloc_netdev_mqs()
author
WANG Cong
<xiyou.wangcong@gmail.com>
Wed, 4 Jun 2014 00:11:54 +0000
(17:11 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 4 Jun 2014 02:18:58 +0000
(19:18 -0700)
When we jump to free_pcpu on failure in alloc_netdev_mqs()
rx and tx queues are not yet allocated, so no need to free them.
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index 0355ca5d2924337372822841a74d87c48dceede6..1ba2cfe3f8e88f59a7bcd65136c7af744e1f8d95 100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-6503,11
+6503,6
@@
free_all:
free_pcpu:
free_percpu(dev->pcpu_refcnt);
- netif_free_tx_queues(dev);
-#ifdef CONFIG_SYSFS
- kfree(dev->_rx);
-#endif
-
free_dev:
netdev_freemem(dev);
return NULL;