提交 e2f5e733 编写于 作者: C Chien Tung 提交者: Roland Dreier

RDMA/nes: Correct error_module bit mask

error_module is 5 bits wide not 4.  The corresponding crit_error_count
array is correct with 32 entries.
Signed-off-by: NChien Tung <ctung@neteffect.com>
--
 drivers/infiniband/hw/nes/nes_hw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 7191a0a1
...@@ -2008,7 +2008,7 @@ static void process_critical_error(struct nes_device *nesdev) ...@@ -2008,7 +2008,7 @@ static void process_critical_error(struct nes_device *nesdev)
0x01010000 | (debug_error & 0x0000ffff)); 0x01010000 | (debug_error & 0x0000ffff));
if (crit_err_count++ > 10) if (crit_err_count++ > 10)
nes_write_indexed(nesdev, NES_IDX_DEBUG_ERROR_MASKS1, 1 << 0x17); nes_write_indexed(nesdev, NES_IDX_DEBUG_ERROR_MASKS1, 1 << 0x17);
error_module = (u16) (debug_error & 0x0F00) >> 8; error_module = (u16) (debug_error & 0x1F00) >> 8;
if (++nesdev->nesadapter->crit_error_count[error_module-1] >= if (++nesdev->nesadapter->crit_error_count[error_module-1] >=
nes_max_critical_error_count) { nes_max_critical_error_count) {
printk(KERN_ERR PFX "Masking off critical error for module " printk(KERN_ERR PFX "Masking off critical error for module "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册