From: Chang Xiangzhong Date: Thu, 21 Nov 2013 21:56:28 +0000 (+0100) Subject: net: sctp: find the correct highest_new_tsn in sack X-Git-Tag: v3.13-rc3~28^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6c416148545bd99d3cc05e672460168245cc156;p=pandora-kernel.git net: sctp: find the correct highest_new_tsn in sack Function sctp_check_transmitted(transport t, ...) would iterate all of transport->transmitted queue and looking for the highest __newly__ acked tsn. The original algorithm would depend on the order of the assoc->transport_list (in function sctp_outq_sack line 1215 - 1226). The result might not be the expected due to the order of the tranport_list. Solution: checking if the exising is smaller than the new one before assigning Signed-off-by: Chang Xiangzhong Acked-by: Vlad Yasevich Acked-by: Neil Horman Signed-off-by: David S. Miller --- Reading git-diff-tree failed