diff options
author | Lee A. Roberts <lee.roberts@hp.com> | 2013-02-28 05:37:27 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-28 21:34:26 +0100 |
commit | 70fc69bc5a54d9776ace7c99d46eb533f8fb6e89 (patch) | |
tree | 8720e9ed3e8d91b80dac204d95cf81a3774ba43a /net/sctp/ulpqueue.c | |
parent | net/sctp: Validate parameter size for SCTP_GET_ASSOC_STATS (diff) | |
download | linux-70fc69bc5a54d9776ace7c99d46eb533f8fb6e89.tar.xz linux-70fc69bc5a54d9776ace7c99d46eb533f8fb6e89.zip |
sctp: fix association hangs due to off-by-one errors in sctp_tsnmap_grow()
In sctp_tsnmap_mark(), correct off-by-one error when calculating
size value for sctp_tsnmap_grow().
In sctp_tsnmap_grow(), correct off-by-one error when copying
and resizing the tsnmap. If max_tsn_seen is in the LSB of the
word, this bit can be lost, causing the corresponding packet
to be transmitted again and to be entered as a duplicate into
the SCTP reassembly/ordering queues. Change parameter name
from "gap" (zero-based index) to "size" (one-based) to enhance
code readability.
Signed-off-by: Lee A. Roberts <lee.roberts@hp.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Diffstat (limited to 'net/sctp/ulpqueue.c')
0 files changed, 0 insertions, 0 deletions