From: Xin Long Date: Sat, 28 Oct 2017 11:43:56 +0000 (+0800) Subject: sctp: fix a type cast warnings that causes a_rwnd gets the wrong value X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf651e67b5d9fdafc167872bf0544eaeb38f2f2b;p=pandora-kernel.git sctp: fix a type cast warnings that causes a_rwnd gets the wrong value commit f6fc6bc0b8e0bb13a210bd7386ffdcb1a5f30ef1 upstream. These warnings were found by running 'make C=2 M=net/sctp/'. Commit d4d6fb5787a6 ("sctp: Try not to change a_rwnd when faking a SACK from SHUTDOWN.") expected to use the peers old rwnd and add our flight size to the a_rwnd. But with the wrong Endian, it may not work as well as expected. So fix it by converting to the right value. Fixes: d4d6fb5787a6 ("sctp: Try not to change a_rwnd when faking a SACK from SHUTDOWN.") Reported-by: Eric Dumazet Signed-off-by: Xin Long Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed