summaryrefslogtreecommitdiffstats
path: root/include/net/ip6_fib.h
diff options
context:
space:
mode:
authorWei Wang2017-08-26 00:03:10 +0200
committerDavid S. Miller2017-08-29 00:34:40 +0200
commit4e587ea71bf924f7dac621f1351653bd41e446cb (patch)
treed45682c9d22fbedfbb2c807fe1845e9a376c1898 /include/net/ip6_fib.h
parentcxgb4: Fix stack out-of-bounds read due to wrong size to t4_record_mbox() (diff)
downloadkernel-qcow2-linux-4e587ea71bf924f7dac621f1351653bd41e446cb.tar.gz
kernel-qcow2-linux-4e587ea71bf924f7dac621f1351653bd41e446cb.tar.xz
kernel-qcow2-linux-4e587ea71bf924f7dac621f1351653bd41e446cb.zip
ipv6: fix sparse warning on rt6i_node
Commit c5cff8561d2d adds rcu grace period before freeing fib6_node. This generates a new sparse warning on rt->rt6i_node related code: net/ipv6/route.c:1394:30: error: incompatible types in comparison expression (different address spaces) ./include/net/ip6_fib.h:187:14: error: incompatible types in comparison expression (different address spaces) This commit adds "__rcu" tag for rt6i_node and makes sure corresponding rcu API is used for it. After this fix, sparse no longer generates the above warning. Fixes: c5cff8561d2d ("ipv6: add rcu grace period before freeing fib6_node") Signed-off-by: Wei Wang <weiwan@google.com> Acked-by: Eric Dumazet <edumazet@google.com> Acked-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip6_fib.h')
-rw-r--r--include/net/ip6_fib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h
index e9c59db92942..af509f801084 100644
--- a/include/net/ip6_fib.h
+++ b/include/net/ip6_fib.h
@@ -105,7 +105,7 @@ struct rt6_info {
* the same cache line.
*/
struct fib6_table *rt6i_table;
- struct fib6_node *rt6i_node;
+ struct fib6_node __rcu *rt6i_node;
struct in6_addr rt6i_gateway;