Commit 3716f8b5 authored by Dong Chenchen's avatar Dong Chenchen Committed by zhangchangzhong
Browse files

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: default avatarDong Chenchen <dongchenchen2@huawei.com>
Reviewed-by: default avatarLiu Jian <liujian56@huawei.com>
Signed-off-by: default avatarZhang Changzhong <zhangchangzhong@huawei.com>
parent 18e10983
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment