]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
tipc: fix the timer expires after interval 100ms
authorHoang Le <hoang.h.le@dektech.com.au>
Mon, 21 Mar 2022 04:22:29 +0000 (11:22 +0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 13:19:06 +0000 (15:19 +0200)
commit9eeba2353711ff585c8951327a5f6487da1cd110
tree810f59f2f0441fa772735fb2a84d6ee4bb38ba6e
parent58728e8094b4867ca38438be843036ce793e411e
tipc: fix the timer expires after interval 100ms

BugLink: https://bugs.launchpad.net/bugs/1971497
[ Upstream commit 6a7d8cff4a3301087dd139293e9bddcf63827282 ]

In the timer callback function tipc_sk_timeout(), we're trying to
reschedule another timeout to retransmit a setup request if destination
link is congested. But we use the incorrect timeout value
(msecs_to_jiffies(100)) instead of (jiffies + msecs_to_jiffies(100)),
so that the timer expires immediately, it's irrelevant for original
description.

In this commit we correct the timeout value in sk_reset_timer()

Fixes: 6787927475e5 ("tipc: buffer overflow handling in listener socket")
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Link: https://lore.kernel.org/r/20220321042229.314288-1-hoang.h.le@dektech.com.au
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/tipc/socket.c