Re: [PATCH net] sctp: alloc stream info when initializing asoc

2017-03-30 Thread David Miller
From: Xin Long Date: Thu, 30 Mar 2017 01:00:53 +0800 > When sending a msg without asoc established, sctp will send INIT packet > first and then enqueue chunks. > > Before receiving INIT_ACK, stream info is not yet alloced. But enqueuing > chunks needs to access stream info, like out stream state

[PATCH net] sctp: alloc stream info when initializing asoc

2017-03-29 Thread Xin Long
When sending a msg without asoc established, sctp will send INIT packet first and then enqueue chunks. Before receiving INIT_ACK, stream info is not yet alloced. But enqueuing chunks needs to access stream info, like out stream state and out stream cnt. This patch is to fix it by allocing out str