diff options
author | David S. Miller <davem@davemloft.net> | 2011-05-17 23:33:11 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-17 23:33:11 +0200 |
commit | 9cbc94eabb0791906051bbfac024ef2c2be8e079 (patch) | |
tree | 41ba194e687c6c60f5c883f98737ac83257d0c00 /drivers/net/sfc/nic.c | |
parent | ipv4: Don't use enums as bitmasks in ip_fragment.c (diff) | |
parent | net: ethtool: fix IPV6 checksum feature name string (diff) | |
download | linux-9cbc94eabb0791906051bbfac024ef2c2be8e079.tar.xz linux-9cbc94eabb0791906051bbfac024ef2c2be8e079.zip |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/vmxnet3/vmxnet3_ethtool.c
net/core/dev.c
Diffstat (limited to 'drivers/net/sfc/nic.c')
-rw-r--r-- | drivers/net/sfc/nic.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/sfc/nic.c b/drivers/net/sfc/nic.c index 5ac9fa2cd3bc..f2a2b947f860 100644 --- a/drivers/net/sfc/nic.c +++ b/drivers/net/sfc/nic.c @@ -1935,6 +1935,13 @@ void efx_nic_get_regs(struct efx_nic *efx, void *buf) size = min_t(size_t, table->step, 16); + if (table->offset >= efx->type->mem_map_size) { + /* No longer mapped; return dummy data */ + memcpy(buf, "\xde\xc0\xad\xde", 4); + buf += table->rows * size; + continue; + } + for (i = 0; i < table->rows; i++) { switch (table->step) { case 4: /* 32-bit register or SRAM */ |