Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rxrpc: Fix calc of resend age

Fix the calculation of the resend age to add a microsecond value as
microseconds, not nanoseconds.

Signed-off-by: David Howells <dhowells@redhat.com>

+1 -1
+1 -1
net/rxrpc/call_event.c
··· 166 166 _enter("{%d,%d}", call->tx_hard_ack, call->tx_top); 167 167 168 168 now = ktime_get_real(); 169 - max_age = ktime_sub(now, jiffies_to_usecs(call->peer->rto_j)); 169 + max_age = ktime_sub_us(now, jiffies_to_usecs(call->peer->rto_j)); 170 170 171 171 spin_lock_bh(&call->lock); 172 172