linux/drivers/char/ipmi
Corey Minyard 392a17b10e ipmi: fix unsigned long underflow
When I set the timeout to a specific value such as 500ms, the timeout
event will not happen in time due to the overflow in function
check_msg_timeout:
...
	ent->timeout -= timeout_period;
	if (ent->timeout > 0)
		return;
...

The type of timeout_period is long, but ent->timeout is unsigned long.
This patch makes the type consistent.

Reported-by: Weilong Chen <chenweilong@huawei.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Tested-by: Weilong Chen <chenweilong@huawei.com>
Cc: <stable@vger.kernel.org> # 3.16.x
2017-09-27 16:03:45 -05:00
..
bt-bmc.c ipmi: bt-bmc: Add ast2500 compatible string 2017-04-07 12:25:38 -05:00
ipmi_bt_sm.c ipmi: Make some data const that was only read 2015-09-03 15:02:27 -05:00
ipmi_devintf.c ipmi: get rid of field-by-field __get_user() 2017-06-26 17:02:54 -04:00
ipmi_dmi.c ipmi: Create a platform device for a DMI-specified IPMI interface 2017-06-19 12:49:36 -05:00
ipmi_dmi.h ipmi: Create a platform device for a DMI-specified IPMI interface 2017-06-19 12:49:36 -05:00
ipmi_kcs_sm.c ipmi: Make some data const that was only read 2015-09-03 15:02:27 -05:00
ipmi_msghandler.c ipmi: fix unsigned long underflow 2017-09-27 16:03:45 -05:00
ipmi_powernv.c char: ipmi: constify ipmi_smi_handlers structures 2017-02-09 09:10:56 -06:00
ipmi_poweroff.c
ipmi_si_intf.c char: ipmi: eliminate misleading print info when being probed via ACPI 2017-09-27 16:03:45 -05:00
ipmi_si_sm.h ipmi: Make some data const that was only read 2015-09-03 15:02:27 -05:00
ipmi_smic_sm.c ipmi: Make some data const that was only read 2015-09-03 15:02:27 -05:00
ipmi_ssif.c ipmi:ssif: Add missing unlock in error branch 2017-06-30 07:18:08 -05:00
ipmi_watchdog.c Some small fixes for IPMI, and one medium sized changed. 2017-07-10 10:59:29 -07:00
Kconfig ipmi: Create a platform device for a DMI-specified IPMI interface 2017-06-19 12:49:36 -05:00
Makefile ipmi: Create a platform device for a DMI-specified IPMI interface 2017-06-19 12:49:36 -05:00