diff options
Diffstat (limited to 'net/sctp/outqueue.c')
-rw-r--r-- | net/sctp/outqueue.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c index 3f78d7f06e14..fe4c3d462f6e 100644 --- a/net/sctp/outqueue.c +++ b/net/sctp/outqueue.c | |||
@@ -1036,8 +1036,7 @@ static void sctp_outq_flush(struct sctp_outq *q, int rtx_timeout, gfp_t gfp) | |||
1036 | /* RFC 2960 6.5 Every DATA chunk MUST carry a valid | 1036 | /* RFC 2960 6.5 Every DATA chunk MUST carry a valid |
1037 | * stream identifier. | 1037 | * stream identifier. |
1038 | */ | 1038 | */ |
1039 | if (chunk->sinfo.sinfo_stream >= | 1039 | if (chunk->sinfo.sinfo_stream >= asoc->stream->outcnt) { |
1040 | asoc->c.sinit_num_ostreams) { | ||
1041 | 1040 | ||
1042 | /* Mark as failed send. */ | 1041 | /* Mark as failed send. */ |
1043 | sctp_chunk_fail(chunk, SCTP_ERROR_INV_STRM); | 1042 | sctp_chunk_fail(chunk, SCTP_ERROR_INV_STRM); |