From: David S. Miller Date: Fri, 23 Sep 2016 10:55:04 +0000 (-0400) Subject: Merge branch 'sctp-fix-gap-ack-blocks' X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=88e4f75900368b8a6febb7bc7d379d52d02e920d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Merge branch 'sctp-fix-gap-ack-blocks' Marcelo Ricardo Leitner says: ==================== sctp: fix the handling of SACK Gap Ack blocks sctp_acked() is using 32bit arithmetics on 16bits vars, via TSN_lte() macros, which is weird and confusing. Once the offset to ctsn is calculated, all wrapping is already handled and thus to verify the Gap Ack blocks we can just use pure less/big-or-equal than checks. Also, rename gap variable to tsn_offset, so it's more meaningful, as it doesn't point to any gap at all. Even so, I don't think this discrepancy resulted in any practical bug. This patch is a preparation for the next one, which will introduce typecheck() for TSN_lte() macros and would cause a compile error here. Suggested-by: David Laight Reported-by: David Laight Signed-off-by: Marcelo Ricardo Leitner ==================== Signed-off-by: David S. Miller --- 88e4f75900368b8a6febb7bc7d379d52d02e920d