From: David Howells Date: Tue, 5 Apr 2022 12:34:09 +0000 (+0100) Subject: rxrpc: Fix calc of resend age X-Git-Tag: v6.6.17~6656^2~23^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=214a9dc7d852216e83acac7b75bc18f01ce184c2;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/net/rxrpc/call_event.c b/net/rxrpc/call_event.c index f8ecad2..2a93e7b 100644 --- a/net/rxrpc/call_event.c +++ b/net/rxrpc/call_event.c @@ -166,7 +166,7 @@ static void rxrpc_resend(struct rxrpc_call *call, unsigned long now_j) _enter("{%d,%d}", call->tx_hard_ack, call->tx_top); now = ktime_get_real(); - max_age = ktime_sub(now, jiffies_to_usecs(call->peer->rto_j)); + max_age = ktime_sub_us(now, jiffies_to_usecs(call->peer->rto_j)); spin_lock_bh(&call->lock);