Commit e44074a2 authored by Xin Long's avatar Xin Long Committed by sanglipeng
Browse files

sctp: remove the unnecessary sinfo_stream check in sctp_prsctp_prune_unsent

stable inclusion
from stable-v5.10.156
commit 0b4c259b63eaab592987c47f41f32e4e2f5d4fbe
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7MCG1

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0b4c259b63eaab592987c47f41f32e4e2f5d4fbe



--------------------------------

[ Upstream commit 9f0b7732 ]

Since commit 5bbbbe32 ("sctp: introduce stream scheduler foundations"),
sctp_stream_outq_migrate() has been called in sctp_stream_init/update to
removes those chunks to streams higher than the new max. There is no longer
need to do such check in sctp_prsctp_prune_unsent().

Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Stable-dep-of: 2f201ae1 ("sctp: clear out_curr if all frag chunks of current msg are pruned")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 054480d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment