diff options
Diffstat (limited to 'crypto/gcm.c')
-rw-r--r-- | crypto/gcm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/gcm.c b/crypto/gcm.c index b7ad808be3d4..3841b5eafa7e 100644 --- a/crypto/gcm.c +++ b/crypto/gcm.c | |||
@@ -152,10 +152,8 @@ static int crypto_gcm_setkey(struct crypto_aead *aead, const u8 *key, | |||
152 | 152 | ||
153 | err = crypto_skcipher_encrypt(&data->req); | 153 | err = crypto_skcipher_encrypt(&data->req); |
154 | if (err == -EINPROGRESS || err == -EBUSY) { | 154 | if (err == -EINPROGRESS || err == -EBUSY) { |
155 | err = wait_for_completion_interruptible( | 155 | wait_for_completion(&data->result.completion); |
156 | &data->result.completion); | 156 | err = data->result.err; |
157 | if (!err) | ||
158 | err = data->result.err; | ||
159 | } | 157 | } |
160 | 158 | ||
161 | if (err) | 159 | if (err) |