projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NET] NETNS: Omit sock->sk_net without CONFIG_NET_NS.
[firefly-linux-kernel-4.4.55.git]
/
net
/
ipv6
/
fib6_rules.c
diff --git
a/net/ipv6/fib6_rules.c
b/net/ipv6/fib6_rules.c
index e7a7fe26cebff9933fc9cf0e009b039c5f5c94d2..cac580749ebeeb2608f59bb4876cc552c3fc4eb2 100644
(file)
--- a/
net/ipv6/fib6_rules.c
+++ b/
net/ipv6/fib6_rules.c
@@
-154,7
+154,7
@@
static int fib6_rule_configure(struct fib_rule *rule, struct sk_buff *skb,
struct nlattr **tb)
{
int err = -EINVAL;
- struct net *net = s
kb->sk->sk_net
;
+ struct net *net = s
ock_net(skb->sk)
;
struct fib6_rule *rule6 = (struct fib6_rule *) rule;
if (rule->action == FR_ACT_TO_TBL) {