summaryrefslogtreecommitdiff
path: root/fs/coda/upcall.c
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:30:05 +0100
commit2722def0f5274f4ccd8a768736158bb297c5feee (patch)
tree6205d937feea5138a12aef799ab53fdce1fdee39 /fs/coda/upcall.c
parentf72e2ba19765ec94ab1b704bce53c3d1ca13202e (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 'fs/coda/upcall.c')
0 files changed, 0 insertions, 0 deletions