]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: fix a lockdep splat
authorEric Dumazet <edumazet@google.com>
Wed, 3 Feb 2016 01:55:01 +0000 (17:55 -0800)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 4 Mar 2016 15:25:48 +0000 (10:25 -0500)
commit6c92a8f0502d3e9a9036473408f7f67b58f22ea9
tree1a9e8d5a6dd2a78a26e79b4751ddd7829ffd309e
parent9f88ecf6c707ef3a6e26a8bd58e948728d2093d6
ipv6: fix a lockdep splat

[ Upstream commit 44c3d0c1c0a880354e9de5d94175742e2c7c9683 ]

Silence lockdep false positive about rcu_dereference() being
used in the wrong context.

First one should use rcu_dereference_protected() as we own the spinlock.

Second one should be a normal assignation, as no barrier is needed.

Fixes: 18367681a10bd ("ipv6 flowlabel: Convert np->ipv6_fl_list to RCU.")
Reported-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
net/ipv6/ip6_flowlabel.c