diff options
author | David Daney <david.daney@cavium.com> | 2016-08-16 13:30:36 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-24 10:07:39 +0200 |
commit | e43dccac6393653706ef7486d3261f21563cf997 (patch) | |
tree | d47d1666d0eb0918a39e75861bd919782fc9e12f /fs/btrfs | |
parent | cfcbd5b85eab2c977cad92289453d25f77d3cdd7 (diff) |
net: thunderx: Fix OOPs with ethtool --register-dump
commit 1423661fed2c40d6d71b5e2e3aa390f85157f9d5 upstream.
The ethtool_ops .get_regs function attempts to read the nonexistent
register NIC_QSET_SQ_0_7_CNM_CHG, which produces a "bus error" type
OOPs.
Fix by not attempting to read, and removing the definition of,
NIC_QSET_SQ_0_7_CNM_CHG. A zero is written into the register dump to
keep the layout unchanged.
Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/btrfs')
0 files changed, 0 insertions, 0 deletions