]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: use offset for ethtool regs data
authorShannon Nelson <snelson@pensando.io>
Mon, 20 Jul 2020 23:00:13 +0000 (16:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2020 01:09:38 +0000 (18:09 -0700)
commitb589d9e174deec3309ec4d4232243c93eb210611
treeccfaebd6ecfadbc45948dca2b01fcf75d5af9511
parent318e7f32419f0ac75d734162743788565e5e0abd
ionic: use offset for ethtool regs data

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: 3d3eb34c86a9 ("ionic: Add initial ethtool support")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_ethtool.c