summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2017-02-17 11:09:09 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-20 12:28:35 (GMT)
commita54ab7420ac742399c150c90e6c9219ab3d9b977 (patch)
tree7b287865dd5a260c25b5b8c4b5c69ef539e05e9f /drivers/hwmon
parent2bdc2e8c29e930e1417f30b49574ed9cef00904c (diff)
downloadlinux-a54ab7420ac742399c150c90e6c9219ab3d9b977.tar.xz
staging: comedi: jr3_pci: cope with jiffies wraparound
commit 8ec04a491825e08068e92bed0bba7821893b6433 upstream. The timer expiry routine `jr3_pci_poll_dev()` checks for expiry by checking whether the absolute value of `jiffies` (stored in local variable `now`) is greater than the expected expiry time in jiffy units. This will fail when `jiffies` wraps around. Also, it seems to make sense to handle the expiry one jiffy earlier than the current test. Use `time_after_eq()` to check for expiry. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions