Skip to content

Commit e9a6f09

Browse files
edumazetgregkh
authored andcommitted
net: neigh: use long type to store jiffies delta
[ Upstream commit 9d027e3 ] A difference of two unsigned long needs long storage. Fixes: c7fb64d ("[NETLINK]: Neighbour table configuration and statistics via rtnetlink") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent ab269ff commit e9a6f09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

net/core/neighbour.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,8 +2049,8 @@ static int neightbl_fill_info(struct sk_buff *skb, struct neigh_table *tbl,
20492049
goto nla_put_failure;
20502050
{
20512051
unsigned long now = jiffies;
2052-
unsigned int flush_delta = now - tbl->last_flush;
2053-
unsigned int rand_delta = now - tbl->last_rand;
2052+
long flush_delta = now - tbl->last_flush;
2053+
long rand_delta = now - tbl->last_rand;
20542054
struct neigh_hash_table *nht;
20552055
struct ndt_config ndc = {
20562056
.ndtc_key_len = tbl->key_len,

0 commit comments

Comments
 (0)