diff options
Diffstat (limited to 'net/ipv6/ip6_tunnel.c')
-rw-r--r-- | net/ipv6/ip6_tunnel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index 6740206b83cf..0c68012b6d6e 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c | |||
@@ -807,7 +807,7 @@ static int ip6_tnl_rcv(struct sk_buff *skb, __u16 protocol, | |||
807 | 807 | ||
808 | rcu_read_lock(); | 808 | rcu_read_lock(); |
809 | t = ip6_tnl_lookup(dev_net(skb->dev), &ipv6h->saddr, &ipv6h->daddr); | 809 | t = ip6_tnl_lookup(dev_net(skb->dev), &ipv6h->saddr, &ipv6h->daddr); |
810 | if (t != NULL) { | 810 | if (t) { |
811 | struct pcpu_sw_netstats *tstats; | 811 | struct pcpu_sw_netstats *tstats; |
812 | 812 | ||
813 | tproto = ACCESS_ONCE(t->parms.proto); | 813 | tproto = ACCESS_ONCE(t->parms.proto); |
@@ -1815,7 +1815,7 @@ static void __net_exit ip6_tnl_destroy_tunnels(struct net *net) | |||
1815 | 1815 | ||
1816 | for (h = 0; h < HASH_SIZE; h++) { | 1816 | for (h = 0; h < HASH_SIZE; h++) { |
1817 | t = rtnl_dereference(ip6n->tnls_r_l[h]); | 1817 | t = rtnl_dereference(ip6n->tnls_r_l[h]); |
1818 | while (t != NULL) { | 1818 | while (t) { |
1819 | /* If dev is in the same netns, it has already | 1819 | /* If dev is in the same netns, it has already |
1820 | * been added to the list by the previous loop. | 1820 | * been added to the list by the previous loop. |
1821 | */ | 1821 | */ |