]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: fix some type cast warnings introduced by stream reconf
authorXin Long <lucien.xin@gmail.com>
Sat, 28 Oct 2017 11:43:54 +0000 (19:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Oct 2017 09:03:24 +0000 (18:03 +0900)
commit1da4fc97cbf89514e417a3df46eaec864a9b8a48
tree95dad261a5cad98743fd05b00eda6c722976427c
parent50317fce2cc70a2bbbc4b42c31bbad510382a53c
sctp: fix some type cast warnings introduced by stream reconf

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

They are introduced by not aware of Endian when coding stream
reconf patches.

Since commit c0d8bab6ae51 ("sctp: add get and set sockopt for
reconf_enable") enabled stream reconf feature for users, the
Fixes tag below would use it.

Fixes: c0d8bab6ae51 ("sctp: add get and set sockopt for reconf_enable")
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>
include/linux/sctp.h
include/net/sctp/sm.h
include/net/sctp/ulpevent.h
net/sctp/sm_make_chunk.c
net/sctp/stream.c
net/sctp/ulpevent.c