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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Dec 2015 22:07:33 +0000 (17:07 -0500)
commit69ce6487dcd364245a3d26322fc8f4ffd1e8d947
treed7ea3b21a69301c7d3ea0a61ab4a026affcb4ed2
parentce212d0f6f5523ca9eb8020267f1aa4eb6869ba8
ipv6: sctp: fix lockdep splat in sctp_v6_get_dst()

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>
net/sctp/ipv6.c