]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv6: fix a lockdep splat
authorEric Dumazet <edumazet@google.com>
Wed, 3 Feb 2016 01:55:01 +0000 (17:55 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:45:18 +0000 (15:45 -0700)
commit53b806295d2ea29f7ba0b35166d153af981a7412
treeba125a5b83c207ee5f0d94f3d185e6d1a319751e
parentcb390af04e5e2bee7c92923ed773e3d4eb65b62a
ipv6: fix a lockdep splat

Orabug: 23330945

Orabug: 23330945

[ 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>
(cherry picked from commit 6c92a8f0502d3e9a9036473408f7f67b58f22ea9)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
(cherry picked from commit 8ca54cd2d7e8d64c008d5f804518494740ddf711)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
net/ipv6/ip6_flowlabel.c