ionic: use offset for ethtool regs data
authorShannon Nelson <snelson@pensando.io>
Mon, 20 Jul 2020 23:00:13 +0000 (16:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 08:19:44 +0000 (10:19 +0200)
commit41badbb3254f90fa986636781144c8246485f222
tree57ebbaea578f3b38193875bc1ad8466f00071bdb
parent30b7a81f4b5cfb161a6fa0baa9218f02df59f798
ionic: use offset for ethtool regs data

[ Upstream commit f85ae16f924f92a370b81b4e77862c1c59882fce ]

Use an offset to write the second half of the regs data into the
second half of the buffer instead of overwriting the first half.

Fixes: 4d03e00a2140 ("ionic: Add initial ethtool support")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_ethtool.c