]> git.baikalelectronics.ru Git - kernel.git/commit
net: sctp: avoid incorrect time_t use
authorArnd Bergmann <arnd@arndb.de>
Wed, 30 Sep 2015 11:26:40 +0000 (13:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2015 10:16:48 +0000 (03:16 -0700)
commitd6b4102f42e729fec00820c0c910b7f5c47ed63e
tree3e24640d10e5697ad1fd1111433c46544b373379
parent666869780400929503894819024501794b59155e
net: sctp: avoid incorrect time_t use

We want to avoid using time_t in the kernel because of the y2038
overflow problem. The use in sctp is not for storing seconds at
all, but instead uses microseconds and is passed as 32-bit
on all machines.

This patch changes the type to u32, which better fits the use.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: linux-sctp@vger.kernel.org
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_make_chunk.c
net/sctp/sm_statefuns.c