aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tcp.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2020-07-22 23:52:11 +0800
committerDavid S. Miller <davem@davemloft.net>2020-07-22 18:00:12 -0700
commit8f13399db22f909a35735bf8ae2f932e0c8f0e30 (patch)
tree076d3e3508f1f1b7f8fe8f219ff3b3066459e0e9 /include/linux/tcp.h
parentAX.25: Fix out-of-bounds read in ax25_connect() (diff)
downloadlinux-rng-8f13399db22f909a35735bf8ae2f932e0c8f0e30.tar.xz
linux-rng-8f13399db22f909a35735bf8ae2f932e0c8f0e30.zip
sctp: shrink stream outq only when new outcnt < old outcnt
It's not necessary to go list_for_each for outq->out_chunk_list when new outcnt >= old outcnt, as no chunk with higher sid than new (outcnt - 1) exists in the outqueue. While at it, also move the list_for_each code in a new function sctp_stream_shrink_out(), which will be used in the next patch. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/tcp.h')
0 files changed, 0 insertions, 0 deletions