aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2017-03-29 19:25:31 +0000
committerNavdeep Parhar <np@FreeBSD.org>2017-03-29 19:25:31 +0000
commita6bef5c27525e173e5d591178c51b8ff26095d44 (patch)
treecb5f7a0cfd09464ed2d774e7ec50ee6cd750d3ba
parent0deb09e26d1a3ca3982d99e30c9741936ea82cb8 (diff)
downloadsrc-a6bef5c27525e173e5d591178c51b8ff26095d44.tar.gz
src-a6bef5c27525e173e5d591178c51b8ff26095d44.zip
Notes
-rw-r--r--sys/dev/cxgbe/common/t4_hw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/common/t4_hw.c b/sys/dev/cxgbe/common/t4_hw.c
index fe60985ffb0f..2843c4fd3742 100644
--- a/sys/dev/cxgbe/common/t4_hw.c
+++ b/sys/dev/cxgbe/common/t4_hw.c
@@ -4332,7 +4332,8 @@ static void mem_intr_handler(struct adapter *adapter, int idx)
if (v & F_ECC_CE_INT_CAUSE) {
u32 cnt = G_ECC_CECNT(t4_read_reg(adapter, cnt_addr));
- t4_edc_err_read(adapter, idx);
+ if (idx <= MEM_EDC1)
+ t4_edc_err_read(adapter, idx);
t4_write_reg(adapter, cnt_addr, V_ECC_CECNT(M_ECC_CECNT));
CH_WARN_RATELIMIT(adapter,