projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3505d1a
)
netsched: Allow var_sk_bound_if meta to work on all namespaces
author
Eric Dumazet
<eric.dumazet@gmail.com>
Thu, 19 Nov 2009 07:24:41 +0000
(23:24 -0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 19 Nov 2009 07:24:41 +0000
(23:24 -0800)
This fix can probably wait 2.6.33, or should use another patch
if needed in 2.6.32 (no get_dev_by_index_rcu() before 2.6.33)
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/em_meta.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sched/em_meta.c
b/net/sched/em_meta.c
index 8e8d836f00c043175de2ae2c355422ea117d033b..24dce8b648a425b39f877bfe4935b0602ee16c9b 100644
(file)
--- a/
net/sched/em_meta.c
+++ b/
net/sched/em_meta.c
@@
-310,7
+310,8
@@
META_COLLECTOR(var_sk_bound_if)
struct net_device *dev;
rcu_read_lock();
- dev = dev_get_by_index_rcu(&init_net, skb->sk->sk_bound_dev_if);
+ dev = dev_get_by_index_rcu(sock_net(skb->sk),
+ skb->sk->sk_bound_dev_if);
*err = var_dev(dev, dst);
rcu_read_unlock();
}