Setting up mod_timer() for IPMI_READ_EVENT_MSG_BUFFER_CMD. 
 Driver stalls in case we hit error cases for IPMI_READ_EVENT_MSG_BUFFER_CMD.

Signed-off-by: Srinivas Gowda <srinivas_g_go...@dell.com>
---
 drivers/char/ipmi/ipmi_si_intf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index 15e4a60..affcc52 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -843,6 +843,9 @@ static enum si_sm_result smi_event_handler(struct smi_info 
*smi_info,
                smi_info->curr_msg->data[1] = IPMI_READ_EVENT_MSG_BUFFER_CMD;
                smi_info->curr_msg->data_size = 2;
 
+               smi_info->last_timeout_jiffies = jiffies;
+               mod_timer(&smi_info->si_timer, (jiffies + SI_TIMEOUT_JIFFIES));
+
                smi_info->handlers->start_transaction(
                        smi_info->si_sm,
                        smi_info->curr_msg->data,
-- 
1.8.1.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to