]> git.baikalelectronics.ru Git - kernel.git/commit
net: sctp: Fix negotiation of the number of data streams.
authorDavid Laight <David.Laight@ACULAB.COM>
Wed, 19 Aug 2020 14:40:52 +0000 (14:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2020 23:37:37 +0000 (16:37 -0700)
commit280524cb9b8872ff61e6e8b41839e045638307bc
tree2a75fcdc873fe7920d049de83c7a372ab389f45e
parent829a31df795f055ee77dc4f66be5a2e08bf1092f
net: sctp: Fix negotiation of the number of data streams.

The number of output and input streams was never being reduced, eg when
processing received INIT or INIT_ACK chunks.
The effect is that DATA chunks can be sent with invalid stream ids
and then discarded by the remote system.

Fixes: 2033e27e2632a ("sctp: convert to genradix")
Signed-off-by: David Laight <david.laight@aculab.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/stream.c