]> git.karo-electronics.de Git - linux-beck.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)
commit12474e8e58d82e2b815cd35956c0c06fab104ee7
tree74c5fdb34f87f717342f0f4247156144eb055061
parentdca3f53c02e325bb19dfc05b1571b9a706226fea
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