ipv6: sctp: fix lockdep splat in sctp_v6_get_dst()
authorEric Dumazet <edumazet@google.com>
Mon, 7 Dec 2015 16:25:21 +0000 (08:25 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 22 Jan 2016 21:40:03 +0000 (21:40 +0000)
commitf41bb6edb46b30f79ae7fc5d714faa607758a8d5
treed76878995b7adcdb84df447131a7f7df93b8c5c8
parentf911e974deba4ecff3bb9c9aac616da8328f4a2b
ipv6: sctp: fix lockdep splat in sctp_v6_get_dst()

commit 69ce6487dcd364245a3d26322fc8f4ffd1e8d947 upstream.

While cooking the sctp np->opt rcu fixes, I forgot to move
one rcu_read_unlock() after the added rcu_dereference() in
sctp_v6_get_dst()

This gave lockdep warnings reported by Dave Jones.

Fixes: c836a8ba9386 ("ipv6: sctp: add rcu protection around np->opt")
Reported-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/sctp/ipv6.c