diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-03-31 05:57:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-01 23:12:30 -0400 |
commit | afe89962ee0799955b606cc7637ac86a296923a6 (patch) | |
tree | 40217ec6b6362e58e17cf91e97d8481c2c6f462d /net/sctp/outqueue.c | |
parent | 612307c6bebc0651cf36b6bf76249898f595fd64 (diff) |
sctp: use right in and out stream cnt
Since sctp reconf was added in sctp, the real cnt of in/out stream
have not been c.sinit_max_instreams and c.sinit_num_ostreams any
more.
This patch is to replace them with stream->in/outcnt.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 025ccff67072..8081476ed313 100644 --- a/net/sctp/outqueue.c +++ b/net/sctp/outqueue.c | |||
@@ -1026,8 +1026,7 @@ static void sctp_outq_flush(struct sctp_outq *q, int rtx_timeout, gfp_t gfp) | |||
1026 | /* RFC 2960 6.5 Every DATA chunk MUST carry a valid | 1026 | /* RFC 2960 6.5 Every DATA chunk MUST carry a valid |
1027 | * stream identifier. | 1027 | * stream identifier. |
1028 | */ | 1028 | */ |
1029 | if (chunk->sinfo.sinfo_stream >= | 1029 | if (chunk->sinfo.sinfo_stream >= asoc->stream->outcnt) { |
1030 | asoc->c.sinit_num_ostreams) { | ||
1031 | 1030 | ||
1032 | /* Mark as failed send. */ | 1031 | /* Mark as failed send. */ |
1033 | sctp_chunk_fail(chunk, SCTP_ERROR_INV_STRM); | 1032 | sctp_chunk_fail(chunk, SCTP_ERROR_INV_STRM); |