diff options
Diffstat (limited to 'net/sctp/sm_sideeffect.c')
-rw-r--r-- | net/sctp/sm_sideeffect.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c index 6eecf7e6338d..c0769569b05d 100644 --- a/net/sctp/sm_sideeffect.c +++ b/net/sctp/sm_sideeffect.c | |||
@@ -577,7 +577,7 @@ static void sctp_cmd_assoc_failed(sctp_cmd_seq_t *commands, | |||
577 | unsigned int error) | 577 | unsigned int error) |
578 | { | 578 | { |
579 | struct sctp_ulpevent *event; | 579 | struct sctp_ulpevent *event; |
580 | 580 | struct sctp_chunk *abort; | |
581 | /* Cancel any partial delivery in progress. */ | 581 | /* Cancel any partial delivery in progress. */ |
582 | sctp_ulpq_abort_pd(&asoc->ulpq, GFP_ATOMIC); | 582 | sctp_ulpq_abort_pd(&asoc->ulpq, GFP_ATOMIC); |
583 | 583 | ||
@@ -593,6 +593,13 @@ static void sctp_cmd_assoc_failed(sctp_cmd_seq_t *commands, | |||
593 | sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, | 593 | sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, |
594 | SCTP_ULPEVENT(event)); | 594 | SCTP_ULPEVENT(event)); |
595 | 595 | ||
596 | if (asoc->overall_error_count >= asoc->max_retrans) { | ||
597 | abort = sctp_make_violation_max_retrans(asoc, chunk); | ||
598 | if (abort) | ||
599 | sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, | ||
600 | SCTP_CHUNK(abort)); | ||
601 | } | ||
602 | |||
596 | sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, | 603 | sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE, |
597 | SCTP_STATE(SCTP_STATE_CLOSED)); | 604 | SCTP_STATE(SCTP_STATE_CLOSED)); |
598 | 605 | ||