]> 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)
commit64e626d6470b3d049acf1acedf33dda520eb563d
tree2a75fcdc873fe7920d049de83c7a372ab389f45e
parent67b1bdf478fed26a77196c6a298a884daf2d2357
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: 16800b3e4be46 ("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