aboutsummaryrefslogtreecommitdiff
path: root/crypto/drbg.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2017-06-23 15:55:15 +0200
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>2017-06-23 15:55:15 +0200
commit5315486b2da90bcfa1ce5c791aafebb4c3534cf1 (patch)
treec3c215962edb82708210606574417efc1b84abe0 /crypto/drbg.c
parent351dce074b70b19c7f8b1b737a862577e822a508 (diff)
parent050639ef5810e8ad17fb6a426eff3c63e616350c (diff)
Merge tag 'v4.9.33' into linux-4.9.y-rt
This is the 4.9.33 stable release Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'crypto/drbg.c')
-rw-r--r--crypto/drbg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/drbg.c b/crypto/drbg.c
index 053035b5c8f8..123d211efa12 100644
--- a/crypto/drbg.c
+++ b/crypto/drbg.c
@@ -1768,9 +1768,8 @@ static int drbg_kcapi_sym_ctr(struct drbg_state *drbg,
break;
case -EINPROGRESS:
case -EBUSY:
- ret = wait_for_completion_interruptible(
- &drbg->ctr_completion);
- if (!ret && !drbg->ctr_async_err) {
+ wait_for_completion(&drbg->ctr_completion);
+ if (!drbg->ctr_async_err) {
reinit_completion(&drbg->ctr_completion);
break;
}