summaryrefslogtreecommitdiffstats
path: root/net/sctp/sm_sideeffect.c
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2020-07-22 17:52:11 +0200
committerDavid S. Miller <davem@davemloft.net>2020-07-23 03:00:12 +0200
commit8f13399db22f909a35735bf8ae2f932e0c8f0e30 (patch)
tree076d3e3508f1f1b7f8fe8f219ff3b3066459e0e9 /net/sctp/sm_sideeffect.c
parentAX.25: Fix out-of-bounds read in ax25_connect() (diff)
downloadlinux-8f13399db22f909a35735bf8ae2f932e0c8f0e30.tar.xz
linux-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 'net/sctp/sm_sideeffect.c')
0 files changed, 0 insertions, 0 deletions