Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Christophe JAILLET and committed by
Herbert Xu
4409c08d eaf05e82

+1 -1
+1 -1
drivers/crypto/virtio/virtio_crypto_akcipher_algs.c
··· 116 116 struct virtio_crypto_session_input *input; 117 117 struct virtio_crypto_ctrl_request *vc_ctrl_req; 118 118 119 - pkey = kmemdup(key, keylen, GFP_ATOMIC); 119 + pkey = kmemdup(key, keylen, GFP_KERNEL); 120 120 if (!pkey) 121 121 return -ENOMEM; 122 122