Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp480389ybl; Tue, 28 Jan 2020 06:36:55 -0800 (PST) X-Google-Smtp-Source: APXvYqyvkgXgFb0qk93VeHQu8nL1Hb44fNTLcxaNO0KsPfSQrd/QdlT8JG2oQo5aOXu0MZ3hD/H6 X-Received: by 2002:a05:6808:a83:: with SMTP id q3mr3159064oij.0.1580222215025; Tue, 28 Jan 2020 06:36:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580222215; cv=none; d=google.com; s=arc-20160816; b=fIQH8056B37mpLB7tjDy3TWF0Nm7YcPxl4FlmOpJMvmaY89316OUg6UIGrotl9JsSv oawdai370dqBWtzRjRkAnnDJrhdYKK+h+9bJ3aQyQ/o8LbbiGGlOp5UDn6MoErcYmnhC uCv9ybg8xoY1ygiwGiMxfhXBQpCvyrvzwWl+62V8wK7qWbVKvDP8o0eBzfpgrYzA86qD d5dzM4TnWjdyggx3DNsGeNJqKp0ojexdSTodIp2U4cLWD8jtyTIwlqtRuz9lGMz7OZab QMHXqcSxO6Ambzop/mHDZbXpAia3JcbHxOBNvzSIpSnzQjcJTLDcBTUAdEKf655oHfmj pOog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gjdvAkguYPL0J1ki4lVhmW4t8/XU1jqZrqbkrMZYMgA=; b=0W/h30H9pDEIF7UF4kq6RIs4Hr9RX/94+lBt1UGBq86ElobiFvrjOMqxwOCIYJjQBx trm8sKCBi0S71456giwKWgWt55KSUlv2TzQm1SlWDI9LnJZNjCVpHH28o23H63GGFdzN I+k1s3GQmOPTNnM/AF/+zWShHx+I9vCXVtEbb3IvF1LaAxhH6XP3bLruGgD1SWLkoP8O gqlC4xx/8mIRnjRC4U5HCMQeO1ETbSp2lx4U7lQ77LGXxcXiesa/vvC2PoEisXoz0J5t C+ZNGKXSTwjrxC5QZme5UAnvpL1nrJgBOOP9yGS6NYaTq+YSa2e31mlOM+xTtw84/rxX G+Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DaW3WWWW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si8434428oto.85.2020.01.28.06.36.43; Tue, 28 Jan 2020 06:36:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DaW3WWWW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387417AbgA1Oeh (ORCPT + 99 others); Tue, 28 Jan 2020 09:34:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:50556 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732459AbgA1OYD (ORCPT ); Tue, 28 Jan 2020 09:24:03 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8CEDD2468A; Tue, 28 Jan 2020 14:24:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221443; bh=4db/nx/Z2/7s+zbDP2Dx7JKPtmOIeHK33hDUB5t1qtE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DaW3WWWW+f+eae0vF4VsnjS9gDMwqmBnzcqAXALJR5Gzq5quZBvXdzWLiLGw/dZP4 DVfOksvLLbANtSM7ra/m//Odp5SSN5GajAoaNZLb1dEyApISFIOOGXzmtKcxPPvbAH WUczB8809uME/QGFO09b6hECdUDAqS5UcNng1S6I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , "David S. Miller" , Sasha Levin Subject: [PATCH 4.9 225/271] net: neigh: use long type to store jiffies delta Date: Tue, 28 Jan 2020 15:06:14 +0100 Message-Id: <20200128135909.308445604@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eric Dumazet [ Upstream commit 9d027e3a83f39b819e908e4e09084277a2e45e95 ] A difference of two unsigned long needs long storage. Fixes: c7fb64db001f ("[NETLINK]: Neighbour table configuration and statistics via rtnetlink") Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/core/neighbour.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/core/neighbour.c b/net/core/neighbour.c index cd85cee14bd03..6578d1f8e6c4a 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -1834,8 +1834,8 @@ static int neightbl_fill_info(struct sk_buff *skb, struct neigh_table *tbl, goto nla_put_failure; { unsigned long now = jiffies; - unsigned int flush_delta = now - tbl->last_flush; - unsigned int rand_delta = now - tbl->last_rand; + long flush_delta = now - tbl->last_flush; + long rand_delta = now - tbl->last_rand; struct neigh_hash_table *nht; struct ndt_config ndc = { .ndtc_key_len = tbl->key_len, -- 2.20.1