diff options
Diffstat (limited to 'crypto/api.c')
-rw-r--r-- | crypto/api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/api.c b/crypto/api.c index afe4610afc4b..bbc147cb5dec 100644 --- a/crypto/api.c +++ b/crypto/api.c | |||
@@ -172,7 +172,7 @@ static struct crypto_alg *crypto_larval_wait(struct crypto_alg *alg) | |||
172 | struct crypto_larval *larval = (void *)alg; | 172 | struct crypto_larval *larval = (void *)alg; |
173 | long timeout; | 173 | long timeout; |
174 | 174 | ||
175 | timeout = wait_for_completion_interruptible_timeout( | 175 | timeout = wait_for_completion_killable_timeout( |
176 | &larval->completion, 60 * HZ); | 176 | &larval->completion, 60 * HZ); |
177 | 177 | ||
178 | alg = larval->adult; | 178 | alg = larval->adult; |
@@ -445,7 +445,7 @@ struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask) | |||
445 | err: | 445 | err: |
446 | if (err != -EAGAIN) | 446 | if (err != -EAGAIN) |
447 | break; | 447 | break; |
448 | if (signal_pending(current)) { | 448 | if (fatal_signal_pending(current)) { |
449 | err = -EINTR; | 449 | err = -EINTR; |
450 | break; | 450 | break; |
451 | } | 451 | } |
@@ -562,7 +562,7 @@ void *crypto_alloc_tfm(const char *alg_name, | |||
562 | err: | 562 | err: |
563 | if (err != -EAGAIN) | 563 | if (err != -EAGAIN) |
564 | break; | 564 | break; |
565 | if (signal_pending(current)) { | 565 | if (fatal_signal_pending(current)) { |
566 | err = -EINTR; | 566 | err = -EINTR; |
567 | break; | 567 | break; |
568 | } | 568 | } |