aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/socket.c')
-rw-r--r--net/sctp/socket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 31c7bfcd9b58..5d488cdcf679 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -1859,7 +1859,7 @@ SCTP_STATIC int sctp_sendmsg(struct kiocb *iocb, struct sock *sk,
1859 } 1859 }
1860 1860
1861 if (asoc->pmtu_pending) 1861 if (asoc->pmtu_pending)
1862 sctp_assoc_pending_pmtu(asoc); 1862 sctp_assoc_pending_pmtu(sk, asoc);
1863 1863
1864 /* If fragmentation is disabled and the message length exceeds the 1864 /* If fragmentation is disabled and the message length exceeds the
1865 * association fragmentation point, return EMSGSIZE. The I-D 1865 * association fragmentation point, return EMSGSIZE. The I-D
@@ -2373,7 +2373,7 @@ static int sctp_apply_peer_addr_params(struct sctp_paddrparams *params,
2373 if ((params->spp_flags & SPP_PMTUD_DISABLE) && params->spp_pathmtu) { 2373 if ((params->spp_flags & SPP_PMTUD_DISABLE) && params->spp_pathmtu) {
2374 if (trans) { 2374 if (trans) {
2375 trans->pathmtu = params->spp_pathmtu; 2375 trans->pathmtu = params->spp_pathmtu;
2376 sctp_assoc_sync_pmtu(asoc); 2376 sctp_assoc_sync_pmtu(sctp_opt2sk(sp), asoc);
2377 } else if (asoc) { 2377 } else if (asoc) {
2378 asoc->pathmtu = params->spp_pathmtu; 2378 asoc->pathmtu = params->spp_pathmtu;
2379 sctp_frag_point(asoc, params->spp_pathmtu); 2379 sctp_frag_point(asoc, params->spp_pathmtu);
@@ -2390,7 +2390,7 @@ static int sctp_apply_peer_addr_params(struct sctp_paddrparams *params,
2390 (trans->param_flags & ~SPP_PMTUD) | pmtud_change; 2390 (trans->param_flags & ~SPP_PMTUD) | pmtud_change;
2391 if (update) { 2391 if (update) {
2392 sctp_transport_pmtu(trans, sctp_opt2sk(sp)); 2392 sctp_transport_pmtu(trans, sctp_opt2sk(sp));
2393 sctp_assoc_sync_pmtu(asoc); 2393 sctp_assoc_sync_pmtu(sctp_opt2sk(sp), asoc);
2394 } 2394 }
2395 } else if (asoc) { 2395 } else if (asoc) {
2396 asoc->param_flags = 2396 asoc->param_flags =