diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2017-02-17 11:09:09 +0000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2017-08-26 02:14:23 +0100 |
commit | f5f27dab6f310d534afa6239ef4c188393d63a40 (patch) | |
tree | 49bf0d9c33fea0341ef37793cd04b0cc6957c460 /fs/nfsd/vfs.c | |
parent | e86ba26497605924e2e3d2bd776cb103fbeb1c2f (diff) | |
download | linux-stable-f5f27dab6f310d534afa6239ef4c188393d63a40.tar.gz linux-stable-f5f27dab6f310d534afa6239ef4c188393d63a40.tar.bz2 linux-stable-f5f27dab6f310d534afa6239ef4c188393d63a40.zip |
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'fs/nfsd/vfs.c')
0 files changed, 0 insertions, 0 deletions