crypto: virtio/akcipher - Do not use GFP_ATOMIC when not needed

There is no need to use GFP_ATOMIC here. GFP_KERNEL is already used for
another memory allocation just the line after.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Christophe JAILLET 2023-02-04 21:54:08 +01:00 committed by Herbert Xu
parent eaf05e829f
commit 4409c08d80
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ static int virtio_crypto_alg_akcipher_init_session(struct virtio_crypto_akcipher
struct virtio_crypto_session_input *input; struct virtio_crypto_session_input *input;
struct virtio_crypto_ctrl_request *vc_ctrl_req; struct virtio_crypto_ctrl_request *vc_ctrl_req;
pkey = kmemdup(key, keylen, GFP_ATOMIC); pkey = kmemdup(key, keylen, GFP_KERNEL);
if (!pkey) if (!pkey)
return -ENOMEM; return -ENOMEM;