summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2017-07-29 21:14:55 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-24 08:32:25 +0100
commit4ecf752738acf14848546b0c7d2e7f3753f1ed3f (patch)
tree268f6bc1fd3bb095e073c5011f9a0cb5b25d1d0c /mm
parentc4baa4a5870cb02f713def1620052bfca7a82bbb (diff)
ipmi: fix unsigned long underflow
commit 392a17b10ec4320d3c0e96e2a23ebaad1123b989 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>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions