diff options
author | Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com> | 2020-02-21 21:54:47 +0530 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2020-02-27 10:17:41 +0100 |
commit | edf0d283d988c0c7da53fa2cc1388649263470de (patch) | |
tree | df9b175ac30b1bf30d6d60f6b0fe9fe84be6dd26 | |
parent | a1a7e3a36e01ca6e67014f8cf673cb8e47be5550 (diff) | |
download | linux-stable-edf0d283d988c0c7da53fa2cc1388649263470de.tar.gz linux-stable-edf0d283d988c0c7da53fa2cc1388649263470de.tar.bz2 linux-stable-edf0d283d988c0c7da53fa2cc1388649263470de.zip |
ipv6: xfrm6_tunnel.c: Use built-in RCU list checking
hlist_for_each_entry_rcu() has built-in RCU and lock checking.
Pass cond argument to list_for_each_entry_rcu() to silence
false lockdep warning when CONFIG_PROVE_RCU_LIST is enabled
by default.
Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
-rw-r--r-- | net/ipv6/xfrm6_tunnel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/xfrm6_tunnel.c b/net/ipv6/xfrm6_tunnel.c index e11bdb0aaa15..25b7ebda2fab 100644 --- a/net/ipv6/xfrm6_tunnel.c +++ b/net/ipv6/xfrm6_tunnel.c @@ -78,7 +78,7 @@ static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const hlist_for_each_entry_rcu(x6spi, &xfrm6_tn->spi_byaddr[xfrm6_tunnel_spi_hash_byaddr(saddr)], - list_byaddr) { + list_byaddr, lockdep_is_held(&xfrm6_tunnel_spi_lock)) { if (xfrm6_addr_equal(&x6spi->addr, saddr)) return x6spi; } |