]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: sctp: add rcu protection around np->opt
authorEric Dumazet <edumazet@google.com>
Thu, 3 Dec 2015 05:48:14 +0000 (21:48 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 May 2017 12:18:44 +0000 (14:18 +0200)
commitf7fdbcdb7bf18411b2322448cca8ce393acf61d9
treec7cf2c4155b08de88649c4d92e96be72e124e1c8
parent6d523f23bb2dadfebcda1636ee2d534259566c6c
ipv6: sctp: add rcu protection around np->opt

commit c836a8ba93869d6a0290a6ae0047fbef09066871 upstream.

This patch completes the work I did in commit 45f6fad84cc3
("ipv6: add complete rcu protection around np->opt"), as I missed
sctp part.

This simply makes sure np->opt is used with proper RCU locking
and accessors.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sctp/ipv6.c