diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2016-07-25 19:21:50 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-21 16:12:57 (GMT) |
commit | 9d29f14db1095f52ca00b8162b242d6fce07d19f (patch) | |
tree | df84ca1f815014b31c1f114d313bed144217e24c /crypto/dh.c | |
parent | bda457d42771e790c2f9be0b483f749b1f22eb2c (diff) | |
download | linux-9d29f14db1095f52ca00b8162b242d6fce07d19f.tar.xz |
staging: ks7010: fix wait_for_completion_interruptible_timeout return handling
wait_for_completion_interruptible_timeout return 0 on timeout and
-ERESTARTSYS if interrupted. The check for
!wait_for_completion_interruptible_timeout() would report an interrupt
as timeout. Further, while HZ/50 will work most of the time it could
fail for HZ < 50, so this is switched to msecs_to_jiffies(20).
Fixes: 13a9930d15b4 ("staging: ks7010: add driver from Nanonote extra-repository")
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/dh.c')
0 files changed, 0 insertions, 0 deletions