From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15CA3C33CB3 for ; Thu, 16 Jan 2020 17:32:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E28CD24683 for ; Thu, 16 Jan 2020 17:32:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579195973; bh=qcru4aRwq+RKr/Q1qem7rS2ddqdmUsEEB9RsAYs/FVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=zJ7PABzFzAafxhSOW/C7eSFdkJzn8FUmkFN1ikahWwHcg7HJ38ECmxmn5WbOcvWt0 iwHv3dstz1TYZLDohV4LHLVlGUkSs+LcK6NN6W3+hyyYS2HBT4QU4OG6O6asaCNNA+ 2I6m7OmxefZTSltKBxdNQjpy6Vcuu2kgW2LHobx0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404624AbgAPRas (ORCPT ); Thu, 16 Jan 2020 12:30:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:43604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392992AbgAPRap (ORCPT ); Thu, 16 Jan 2020 12:30:45 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7D17D24690; Thu, 16 Jan 2020 17:30:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579195845; bh=qcru4aRwq+RKr/Q1qem7rS2ddqdmUsEEB9RsAYs/FVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pnv8ms7q7fV7zwau8bzIU/9eqAAiSzW129/QYekH9lDZnFsdBXObVkJXsPOj5L0u2 X/3A7PD97M3ydmORFlbEDrsDXzmGzr4aqVLVZeXweZw1PwdZ1GPXmVj+MtZtjG4pw3 3XQm5PGieYpB6aE/SvhnUqshd+oQJQDPwm8/mLIc= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Eric Dumazet , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.14 346/371] net: neigh: use long type to store jiffies delta Date: Thu, 16 Jan 2020 12:23:38 -0500 Message-Id: <20200116172403.18149-289-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200116172403.18149-1-sashal@kernel.org> References: <20200116172403.18149-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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 16ac50b1b9a7..567e431813e5 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -1877,8 +1877,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