diff options
author | Chien Tung <ctung@neteffect.com> | 2008-10-08 14:43:29 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-10-08 14:43:29 -0700 |
commit | e2f5e7333a2fb51ef9e45280c3da9ca3bde65fde (patch) | |
tree | 022a747dda261baa7a834c1c9a99ed49c2dfc9e5 /drivers/infiniband | |
parent | 7191a0a18228c8da9abc7776433c6a3953ff1e4b (diff) | |
download | linux-stable-e2f5e7333a2fb51ef9e45280c3da9ca3bde65fde.tar.gz linux-stable-e2f5e7333a2fb51ef9e45280c3da9ca3bde65fde.tar.bz2 linux-stable-e2f5e7333a2fb51ef9e45280c3da9ca3bde65fde.zip |
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: Chien Tung <ctung@neteffect.com>
--
drivers/infiniband/hw/nes/nes_hw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_hw.c b/drivers/infiniband/hw/nes/nes_hw.c index eca3520565fe..7c49cc882d75 100644 --- a/drivers/infiniband/hw/nes/nes_hw.c +++ b/drivers/infiniband/hw/nes/nes_hw.c @@ -2008,7 +2008,7 @@ static void process_critical_error(struct nes_device *nesdev) 0x01010000 | (debug_error & 0x0000ffff)); if (crit_err_count++ > 10) 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] >= nes_max_critical_error_count) { printk(KERN_ERR PFX "Masking off critical error for module " |