]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv6/tcp_ipv6.c
ipv6: tcp: add rcu locking in tcp_v6_send_synack()
[karo-tx-linux.git] / net / ipv6 / tcp_ipv6.c
index 6b8a8a9091fa113ee28906c570e78811e6f29815..bd100b47c7171ce1d85ea5a437c13081a60cd29c 100644 (file)
@@ -462,8 +462,10 @@ static int tcp_v6_send_synack(const struct sock *sk, struct dst_entry *dst,
                if (np->repflow && ireq->pktopts)
                        fl6->flowlabel = ip6_flowlabel(ipv6_hdr(ireq->pktopts));
 
+               rcu_read_lock();
                err = ip6_xmit(sk, skb, fl6, rcu_dereference(np->opt),
                               np->tclass);
+               rcu_read_unlock();
                err = net_xmit_eval(err);
        }