Commit 0b4ff2c0 authored by Roland Dreier's avatar Roland Dreier

[IB] mthca: fix typo in catastrophic error polling

Fix a typo in the rearming of the catastrophic error polling timer: we
should rearm the timer as long as the stop flag is _not_ set.
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 8c608a32
...@@ -94,7 +94,7 @@ static void poll_catas(unsigned long dev_ptr) ...@@ -94,7 +94,7 @@ static void poll_catas(unsigned long dev_ptr)
} }
spin_lock_irqsave(&catas_lock, flags); spin_lock_irqsave(&catas_lock, flags);
if (dev->catas_err.stop) if (!dev->catas_err.stop)
mod_timer(&dev->catas_err.timer, mod_timer(&dev->catas_err.timer,
jiffies + MTHCA_CATAS_POLL_INTERVAL); jiffies + MTHCA_CATAS_POLL_INTERVAL);
spin_unlock_irqrestore(&catas_lock, flags); spin_unlock_irqrestore(&catas_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment