diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/ixp4xx_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index a82c11af9f48..0053d7ebb5ca 100644 --- a/drivers/crypto/ixp4xx_crypto.c +++ b/drivers/crypto/ixp4xx_crypto.c | |||
@@ -265,7 +265,7 @@ static int setup_crypt_desc(void) | |||
265 | BUILD_BUG_ON(sizeof(struct crypt_ctl) != 64); | 265 | BUILD_BUG_ON(sizeof(struct crypt_ctl) != 64); |
266 | crypt_virt = dma_alloc_coherent(dev, | 266 | crypt_virt = dma_alloc_coherent(dev, |
267 | NPE_QLEN * sizeof(struct crypt_ctl), | 267 | NPE_QLEN * sizeof(struct crypt_ctl), |
268 | &crypt_phys, GFP_KERNEL); | 268 | &crypt_phys, GFP_ATOMIC); |
269 | if (!crypt_virt) | 269 | if (!crypt_virt) |
270 | return -ENOMEM; | 270 | return -ENOMEM; |
271 | memset(crypt_virt, 0, NPE_QLEN * sizeof(struct crypt_ctl)); | 271 | memset(crypt_virt, 0, NPE_QLEN * sizeof(struct crypt_ctl)); |