Commit 314ef52f authored by Corey Minyard's avatar Corey Minyard

ipmi: Stop the timer immediately if idle

The IPMI driver would let the final timeout just happen, but it could
easily just stop the timer.  If the timer stop fails that's ok, that
should be rare.
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 0cfec916
...@@ -935,6 +935,13 @@ static enum si_sm_result smi_event_handler(struct smi_info *smi_info, ...@@ -935,6 +935,13 @@ static enum si_sm_result smi_event_handler(struct smi_info *smi_info,
} }
goto restart; goto restart;
} }
if (si_sm_result == SI_SM_IDLE && smi_info->timer_running) {
/* Ok it if fails, the timer will just go off. */
if (del_timer(&smi_info->si_timer))
smi_info->timer_running = false;
}
out: out:
return si_sm_result; return si_sm_result;
} }
......
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