Skip to content

Commit 3e83095

Browse files
Tomas Winklergregkh
authored andcommitted
mei: fix device stall after wd is stopped
After watchdog was disabled the driver would stall due to wrong calculation of credits reduction The cat&paste bug was introduced in the commit 7bdf72d mei: introduce mei_data2slots wrapper Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0d7614f commit 3e83095

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/misc/mei/interrupt.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list,
12531253
if (dev->wd_timeout)
12541254
*slots -= mei_data2slots(MEI_START_WD_DATA_SIZE);
12551255
else
1256-
*slots -= mei_data2slots(MEI_START_WD_DATA_SIZE);
1256+
*slots -= mei_data2slots(MEI_WD_PARAMS_SIZE);
12571257
}
12581258
}
12591259
if (dev->stop)

0 commit comments

Comments
 (0)