summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/vfs.c
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2017-02-17 11:09:09 +0000
committerBen Hutchings <ben@decadent.org.uk>2017-08-26 02:14:23 +0100
commitf5f27dab6f310d534afa6239ef4c188393d63a40 (patch)
tree49bf0d9c33fea0341ef37793cd04b0cc6957c460 /fs/nfsd/vfs.c
parente86ba26497605924e2e3d2bd776cb103fbeb1c2f (diff)
downloadlinux-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