Skip to content

Commit

Permalink
[IB] mthca: fix typo in catastrophic error polling
Browse files Browse the repository at this point in the history
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: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Roland Dreier committed Nov 10, 2005
1 parent 8c608a3 commit 0b4ff2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/mthca/mthca_catas.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static void poll_catas(unsigned long dev_ptr)
}

spin_lock_irqsave(&catas_lock, flags);
if (dev->catas_err.stop)
if (!dev->catas_err.stop)
mod_timer(&dev->catas_err.timer,
jiffies + MTHCA_CATAS_POLL_INTERVAL);
spin_unlock_irqrestore(&catas_lock, flags);
Expand Down

0 comments on commit 0b4ff2c

Please sign in to comment.