]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/crypto/fpu.c
Merge branch 'linus' into x86/mm
[karo-tx-linux.git] / arch / x86 / crypto / fpu.c
index 5f9781a3815f8fd401df0f3ce6a591a006a787a4..daef6cd2b45d6bae0c63228002478c01251adaf7 100644 (file)
@@ -48,7 +48,7 @@ static int crypto_fpu_encrypt(struct blkcipher_desc *desc_in,
        struct blkcipher_desc desc = {
                .tfm = child,
                .info = desc_in->info,
-               .flags = desc_in->flags,
+               .flags = desc_in->flags & ~CRYPTO_TFM_REQ_MAY_SLEEP,
        };
 
        kernel_fpu_begin();
@@ -67,7 +67,7 @@ static int crypto_fpu_decrypt(struct blkcipher_desc *desc_in,
        struct blkcipher_desc desc = {
                .tfm = child,
                .info = desc_in->info,
-               .flags = desc_in->flags,
+               .flags = desc_in->flags & ~CRYPTO_TFM_REQ_MAY_SLEEP,
        };
 
        kernel_fpu_begin();