]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sctp: remove the unnecessary sinfo_stream check in sctp_prsctp_prune_unsent
authorXin Long <lucien.xin@gmail.com>
Fri, 4 Nov 2022 21:45:15 +0000 (17:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:45:43 +0000 (17:45 +0100)
commit0b4c259b63eaab592987c47f41f32e4e2f5d4fbe
tree9121243f0f25e986f04896064891d8d40a91fc81
parent7360e7c29d276631f2af15d68d138f7f9e72803a
sctp: remove the unnecessary sinfo_stream check in sctp_prsctp_prune_unsent

[ Upstream commit 9f0b773210c27a8f5d98ddb2fc4ba60a42a3285f ]

Since commit 5bbbbe32a431 ("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: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 2f201ae14ae0 ("sctp: clear out_curr if all frag chunks of current msg are pruned")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sctp/outqueue.c