]> 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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 2 Mar 2016 15:29:07 +0000 (16:29 +0100)
commita8837e30e3eece2c8c02345035c14b32f695bfcf
treef94da3695cc4bf48c53a66371d0e91afe0f86b76
parente16f537864eb9cf68683d9e107706d1b31fcaa76
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: Jiri Slaby <jslaby@suse.cz>
net/ipv6/ip6_flowlabel.c