From: Lee A. Roberts Date: Thu, 28 Feb 2013 04:37:27 +0000 (+0000) Subject: sctp: fix association hangs due to off-by-one errors in sctp_tsnmap_grow() X-Git-Tag: v3.9-rc2~24^2~25^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70fc69bc5a54d9776ace7c99d46eb533f8fb6e89;p=pandora-kernel.git 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 Acked-by: Vlad Yasevich Acked-by: Neil Horman --- Reading git-diff-tree failed