OSDN Git Service

ehea: Fix a copy-paste err in ehea_init_port_res
authorYueHaibing <yuehaibing@huawei.com>
Wed, 3 Apr 2019 07:47:59 +0000 (15:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:37 +0000 (14:50 +0100)
commitba61f56385557de1681a2be04d4705f4e95dd0a1
tree3b5777bb910be84edfbc6487a89b2e1424abbd29
parentfe7005a0239f54cf76ea6cbe89701199105bf6d3
ehea: Fix a copy-paste err in ehea_init_port_res

[ Upstream commit c8f191282f819ab4e9b47b22a65c6c29734cefce ]

pr->tx_bytes should be assigned to tx_bytes other than
rx_bytes.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: ce45b873028f ("ehea: Fixing statistics")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/ibm/ehea/ehea_main.c