]> 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)
commite50a435db042a81af8155d2bbcc2e0f3f19489f1
tree74c5fdb34f87f717342f0f4247156144eb055061
parent487894ff209388374c8b0ca4881925c8ca7b87c3
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