]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/crypto/fpu.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit...
[net-next-2.6.git] / arch / x86 / crypto / fpu.c
index 5f9781a3815f8fd401df0f3ce6a591a006a787a4..1a8f8649c035b2e6fe5b30b0032382760cc9e495 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/slab.h>
 #include <asm/i387.h>
 
 struct crypto_fpu_ctx {
@@ -48,7 +49,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 +68,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();