Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp463266ybl; Tue, 28 Jan 2020 06:21:57 -0800 (PST) X-Google-Smtp-Source: APXvYqyYhX1iEmcfOTpiZGW13ic/Pj2gSse5pwmrubxdUcftzRvxr2TWs1ypPKxryG3e6y3ka769 X-Received: by 2002:a05:6808:a83:: with SMTP id q3mr3103522oij.0.1580221317717; Tue, 28 Jan 2020 06:21:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221317; cv=none; d=google.com; s=arc-20160816; b=jezWxZVXZyLFiUL1JhiPm1khRkExs1Avjuwn8uRFeHsrdvWCVw+040nUPWdh7LXTfr neq2hebtOj7EcFpXah+ChSBwDD+EXSU1HNATtSqzhCv1QHkS3Pu3yyEwePqQbWFzq2cX NxpQYl7N70wT43jpToEI0nIlXjDbKLd2NRPGsInVN1dfwBX/bj2uxfCyT+x8eXvf8zXF r6h6/97VL2Xa7LnOeCW+FtdqVD2ho+3R1Pz9RsbiwXjSTmi3pgnbb11bXKJnwLwWVXDX YNS6FpILccvwF3438woStGZV/MhhFJifpiRTDIYiD4IUVFtAjllgbnsLU2S0QUrSNbNw 4sCg== 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=BIS4x/SL6iDdpTq7w8QmcI0EyBKLdO+qxADtkXQRZO0=; b=DPlwrS2DRLipa30sLPjCrKEtX5Q+wBGefrbl2O6viizTKjUfptBULi8YfV0iZs2Cx9 AFNc9TUFwpLioD2CwYQAg96YN4BWq67it3MGZozdffyVpyxcZpSPks1dKuDJs9AD7hcQ 0gtZD1CEu2FSBB1jkxgNV48HcpgZTkBOPSQ4GV7VWSPJLIrVSkgHW/DW3IMzNIKwdBPC oSaGG8WRO4q/tJNprSWABJGfHebF19WsXoEhwewsfIk04IMSH/k4Mj/kVv9QZ91WX6l3 sUIfluq8a8eXQ3VW7WVU8NLvzCQSB/uqdy/ANimfCYyNfaIL+5RO/vL6zY9TQyYygbLH bCKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fNq+XUry; 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.21.46; Tue, 28 Jan 2020 06:21:57 -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=fNq+XUry; 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 S1731157AbgA1OUz (ORCPT + 99 others); Tue, 28 Jan 2020 09:20:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:45940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731145AbgA1OUv (ORCPT ); Tue, 28 Jan 2020 09:20:51 -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 BD20E21739; Tue, 28 Jan 2020 14:20:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221251; bh=8OzNsdy4d7Ke874WxL42U1gN9E01qAY2+swLm2PIZCI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fNq+XUryZfLNT48sMMxNjNS5A6MeMpiVfU+7hCaHLEA0/Md03ISP2+ipHPMrnu7GO MCyA3NdhMF8yI4dBoSyNZYaaSmq+Wo8XC5+H+CjuSGq5w0WJsLsSHQvWTbbqt6oWjx /BkVjfoDsum2EPoRDPIjnmo1Iw8/H/Fe5DI2mBfM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , YueHaibing , Mukesh Ojha , "David S. Miller" , Sasha Levin Subject: [PATCH 4.9 113/271] ehea: Fix a copy-paste err in ehea_init_port_res Date: Tue, 28 Jan 2020 15:04:22 +0100 Message-Id: <20200128135900.987677866@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: YueHaibing [ Upstream commit c8f191282f819ab4e9b47b22a65c6c29734cefce ] pr->tx_bytes should be assigned to tx_bytes other than rx_bytes. Reported-by: Hulk Robot Fixes: ce45b873028f ("ehea: Fixing statistics") Signed-off-by: YueHaibing Reviewed-by: Mukesh Ojha Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/ibm/ehea/ehea_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ibm/ehea/ehea_main.c b/drivers/net/ethernet/ibm/ehea/ehea_main.c index 2dd17e01e3a7a..3692adb8902d1 100644 --- a/drivers/net/ethernet/ibm/ehea/ehea_main.c +++ b/drivers/net/ethernet/ibm/ehea/ehea_main.c @@ -1476,7 +1476,7 @@ static int ehea_init_port_res(struct ehea_port *port, struct ehea_port_res *pr, memset(pr, 0, sizeof(struct ehea_port_res)); - pr->tx_bytes = rx_bytes; + pr->tx_bytes = tx_bytes; pr->tx_packets = tx_packets; pr->rx_bytes = rx_bytes; pr->rx_packets = rx_packets; -- 2.20.1