Files
linux/drivers
Corey Minyard 55b06b0fc0 ipmi: fix unsigned long underflow
commit 392a17b10e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-24 08:33:42 +01:00
..
2017-11-21 09:23:22 +01:00
2016-12-05 14:53:46 -05:00
2017-11-24 08:33:42 +01:00
2017-10-18 09:35:38 +02:00
2017-10-12 11:51:24 +02:00
2017-11-08 10:08:34 +01:00
2017-09-09 17:39:41 +02:00
2017-10-21 17:21:35 +02:00
2017-11-24 08:33:41 +01:00
2017-11-21 09:23:25 +01:00