]> git.baikalelectronics.ru Git - kernel.git/commit
sctp_diag: Fix T3_rtx timer export
authorPhil Sutter <phil@nwl.cc>
Thu, 4 Aug 2016 10:11:56 +0000 (12:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2016 19:51:58 +0000 (12:51 -0700)
commit246de2ed721e683229264c7587e4aaaf14879ba1
tree74c5fdb34f87f717342f0f4247156144eb055061
parent07d18ebbc9f2ea6f6f9179615b1b7f28e7144c6b
sctp_diag: Fix T3_rtx timer export

The asoc's timer value is not kept in asoc->timeouts array but in it's
primary transport instead.

Furthermore, we must export the timer only if it is pending, otherwise
the value will underrun when stored in an unsigned variable and
user space will only see a very large timeout value.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sctp_diag.c