diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-03-31 11:57:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-02 05:12:30 +0200 |
commit | afe89962ee0799955b606cc7637ac86a296923a6 (patch) | |
tree | 40217ec6b6362e58e17cf91e97d8481c2c6f462d /net/sctp/outqueue.c | |
parent | Merge tag 'mac80211-for-davem-2017-03-31' of git://git.kernel.org/pub/scm/lin... (diff) | |
download | linux-afe89962ee0799955b606cc7637ac86a296923a6.tar.xz linux-afe89962ee0799955b606cc7637ac86a296923a6.zip |
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) /* RFC 2960 6.5 Every DATA chunk MUST carry a valid * stream identifier. */ - if (chunk->sinfo.sinfo_stream >= - asoc->c.sinit_num_ostreams) { + if (chunk->sinfo.sinfo_stream >= asoc->stream->outcnt) { /* Mark as failed send. */ sctp_chunk_fail(chunk, SCTP_ERROR_INV_STRM); |