Re: [PATCHv3 net] sctp: check and update stream->out_curr when allocating stream_out

2019-02-03 Thread David Miller
From: Xin Long Date: Mon, 4 Feb 2019 03:27:58 +0800 > Now when using stream reconfig to add out streams, stream->out > will get re-allocated, and all old streams' information will > be copied to the new ones and the old ones will be freed. > > So without stream->out_curr updated, next time when

Re: [PATCHv3 net] sctp: check and update stream->out_curr when allocating stream_out

2019-02-03 Thread Neil Horman
On Mon, Feb 04, 2019 at 03:27:58AM +0800, Xin Long wrote: > Now when using stream reconfig to add out streams, stream->out > will get re-allocated, and all old streams' information will > be copied to the new ones and the old ones will be freed. > > So without stream->out_curr updated, next time w

[PATCHv3 net] sctp: check and update stream->out_curr when allocating stream_out

2019-02-03 Thread Xin Long
Now when using stream reconfig to add out streams, stream->out will get re-allocated, and all old streams' information will be copied to the new ones and the old ones will be freed. So without stream->out_curr updated, next time when trying to send from stream->out_curr stream, a panic would be ca