]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: fix a type cast warnings that causes a_rwnd gets the wrong value
authorXin Long <lucien.xin@gmail.com>
Sat, 28 Oct 2017 11:43:56 +0000 (19:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Oct 2017 09:03:24 +0000 (18:03 +0900)
commit64bceb24d05fa79dcbb0303deb0c807400d0463a
tree26bd186e3cc30b231301f3853df53341092734fa
parent6d0684aa8d21876d0bd2e322cd9f7e3e944e91eb
sctp: fix a type cast warnings that causes a_rwnd gets the wrong value

These warnings were found by running 'make C=2 M=net/sctp/'.

Commit 6ba3e8980e6a ("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: 6ba3e8980e6a ("sctp: Try not to change a_rwnd when faking a SACK from SHUTDOWN.")
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_sideeffect.c