diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2017-02-17 14:09:09 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-06 11:16:58 +0300 |
| commit | 8ec04a491825e08068e92bed0bba7821893b6433 (patch) | |
| tree | 533f133dec647ccb64a2c7e551d43249f57cc7b8 /scripts/basic | |
| parent | 45292be0b3db0b7f8286683b376e2d9f949d11f9 (diff) | |
| download | linux-8ec04a491825e08068e92bed0bba7821893b6433.tar.xz | |
staging: comedi: jr3_pci: cope with jiffies wraparound
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.
Cc: <stable@vger.kernel.org> # 3.15+
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
