net: sctp: update stream->incnt after successful allocation of stream_in
hulk inclusion category: bugfix bugzilla: 188766, https://gitee.com/openeuler/kernel/issues/I72J0M CVE: NA ---------------------------------------- The stream->incnt is used to record number of stream_in. sctp_stream_alloc_in() allocate array of incnt size for sctp_stream_in. If array is allocated successfully in sctp_stream_init(), stream->incnt should be updated with variable incnt. Fixes: 703397c7 ("sctp: leave the err path free in sctp_stream_init to sctp_stream_free") Signed-off-by: NDong Chenchen <dongchenchen2@huawei.com> Reviewed-by: NLiu Jian <liujian56@huawei.com> Signed-off-by: NZhang Changzhong <zhangchangzhong@huawei.com>
Showing
想要评论请 注册 或 登录