Skip to content

Commit ac71d5f

Browse files
committed
rxrpc: Fix _usecs_to_jiffies() by using usecs_to_jiffies()
jira LE-1907 Rebuild_History Non-Buildable kernel-rt-5.14.0-284.30.1.rt14.315.el9_2 commit-author Jiasheng Jiang <[email protected]> commit acde891 Directly using _usecs_to_jiffies() might be unsafe, so it's better to use usecs_to_jiffies() instead. Because we can see that the result of _usecs_to_jiffies() could be larger than MAX_JIFFY_OFFSET values without the check of the input. Fixes: c410bf0 ("Fix the excessive initial retransmission timeout") Signed-off-by: Jiasheng Jiang <[email protected]> Signed-off-by: David S. Miller <[email protected]> (cherry picked from commit acde891) Signed-off-by: Jonathan Maple <[email protected]>
1 parent 295739c commit ac71d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/rxrpc/rtt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static u32 rxrpc_rto_min_us(struct rxrpc_peer *peer)
2222

2323
static u32 __rxrpc_set_rto(const struct rxrpc_peer *peer)
2424
{
25-
return _usecs_to_jiffies((peer->srtt_us >> 3) + peer->rttvar_us);
25+
return usecs_to_jiffies((peer->srtt_us >> 3) + peer->rttvar_us);
2626
}
2727

2828
static u32 rxrpc_bound_rto(u32 rto)

0 commit comments

Comments
 (0)