From patchwork Fri May 8 12:34:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 226246 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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, 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 E7659C47247 for ; Fri, 8 May 2020 12:46:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C70EE221F7 for ; Fri, 8 May 2020 12:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588942011; bh=hCvt6OfUUrqHDdta7wCR11ND9UpW1jb4L9Mq/vlQU1w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=BYIA0GO7zKm+o0sG9T6mzB3uK4MwPPcXlWFvOyI4vz/5I0iMyj5R7iZ2GwM+NshMk Nyo/myRDRP8hmVtLaUSmB//1dFUkXfsK0utFiAywtp8pRZs1kQ1rSe9I/6f8rLFWNl WxBOA99LKeranMNwp/qcHy16WRKtKuEURzxl01FI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729480AbgEHMqu (ORCPT ); Fri, 8 May 2020 08:46:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:48550 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728853AbgEHMqs (ORCPT ); Fri, 8 May 2020 08:46:48 -0400 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 08A2F2495E; Fri, 8 May 2020 12:46:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588942008; bh=hCvt6OfUUrqHDdta7wCR11ND9UpW1jb4L9Mq/vlQU1w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cesKLAuc3M+zbSkYxV2DSAvzxnBkRvAMmsxCWopg3cfc3lCp+esQhSXzFrnYKpUml jn3h5L4Dq7lwutf+jvm5Pi6DHlwF1JN4Z6VUv6VFBrE5y6LOC/Jhpg5pJrHGY8OCxv LoU5YmijB0dXKDQt81dywDNGX2osS1K3ACjTVchQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Fainelli , "David S. Miller" Subject: [PATCH 4.4 259/312] net: bcmsysport: Device stats are unsigned long Date: Fri, 8 May 2020 14:34:10 +0200 Message-Id: <20200508123142.621706930@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200508123124.574959822@linuxfoundation.org> References: <20200508123124.574959822@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Florian Fainelli commit 016eb55157166132b094e53434748cae35e18455 upstream. On 64bits kernels, device stats are 64bits wide, not 32bits. Fixes: 80105befdb4b ("net: systemport: add Broadcom SYSTEMPORT Ethernet MAC driver") Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/broadcom/bcmsysport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/broadcom/bcmsysport.c +++ b/drivers/net/ethernet/broadcom/bcmsysport.c @@ -396,7 +396,7 @@ static void bcm_sysport_get_stats(struct else p = (char *)priv; p += s->stat_offset; - data[i] = *(u32 *)p; + data[i] = *(unsigned long *)p; } }