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=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 3CC23C2D0DB for ; Fri, 24 Jan 2020 11:35:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0780F2075D for ; Fri, 24 Jan 2020 11:35:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579865743; bh=fIHDlve4Ao8B0AFVAsbET8j2qKXguODvTNdeLQuTIJE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=sWq75CEG68or+Xg+t/81wlI1aEsR+V1x8ifT6+6Pn6LxGIu4kJydgwsW09o7jPilu iga5Nnbqj6wuqVhc+ZIdhsbtjkJV/oCHRJ8FFp+KpkYBcXQbwCggHxCl+uZ2OJ/Iio DDXzxHkIt6zvxnjPL5USNIm5EzuFkb8eHpa+mdD0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404856AbgAXLfl (ORCPT ); Fri, 24 Jan 2020 06:35:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:55692 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404847AbgAXLfj (ORCPT ); Fri, 24 Jan 2020 06:35:39 -0500 Received: from localhost (ip-213-127-102-57.ip.prioritytelecom.net [213.127.102.57]) (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 15ADA206D4; Fri, 24 Jan 2020 11:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579865738; bh=fIHDlve4Ao8B0AFVAsbET8j2qKXguODvTNdeLQuTIJE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k1v8VHaRkIpMQO7dvR4N53rM4fjUglxfRgXU+K3TAozyofjA3Z7mNTXpUANn+oD+8 OwHtjimmlqd1zuh+Vk9WkJBV0UmCZj9PgMZy1d/bXpQ58x9/0ePbg8pHf91mXkCg/s h2Tp5HDM0IfcCdv1LI+vhi8QHHhFOQ/7dgWSXTFQ= 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.19 624/639] net: neigh: use long type to store jiffies delta Date: Fri, 24 Jan 2020 10:33:14 +0100 Message-Id: <20200124093207.768059375@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124093047.008739095@linuxfoundation.org> References: <20200124093047.008739095@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 e260d44ebdca0..bf738ec68cb53 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -1885,8 +1885,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