]> git.ipfire.org Git - people/ms/linux.git/blobdiff - drivers/crypto/hisilicon/hpre/hpre_crypto.c
crypto: hisilicon/hpre - don't use GFP_KERNEL to alloc mem during softirq
[people/ms/linux.git] / drivers / crypto / hisilicon / hpre / hpre_crypto.c
index 97d54c1465c2b05c629133b76117ec6a1594521c..3ba6f15deafc661819c9954c2a494dac4947656e 100644 (file)
@@ -252,7 +252,7 @@ static int hpre_prepare_dma_buf(struct hpre_asym_request *hpre_req,
        if (unlikely(shift < 0))
                return -EINVAL;
 
-       ptr = dma_alloc_coherent(dev, ctx->key_sz, tmp, GFP_KERNEL);
+       ptr = dma_alloc_coherent(dev, ctx->key_sz, tmp, GFP_ATOMIC);
        if (unlikely(!ptr))
                return -ENOMEM;