mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
ipv6: sr: fix passing wrong flags to crypto_alloc_shash()
[ Upstream commitfc9c2029e3
] The 'mask' argument to crypto_alloc_shash() uses the CRYPTO_ALG_* flags, not 'gfp_t'. So don't pass GFP_KERNEL to it. Fixes:bf355b8d2c
("ipv6: sr: add core files for SR HMAC support") Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e34e92d8b6
commit
d10c0baaae
1 changed files with 1 additions and 1 deletions
|
@ -373,7 +373,7 @@ static int seg6_hmac_init_algo(void)
|
|||
return -ENOMEM;
|
||||
|
||||
for_each_possible_cpu(cpu) {
|
||||
tfm = crypto_alloc_shash(algo->name, 0, GFP_KERNEL);
|
||||
tfm = crypto_alloc_shash(algo->name, 0, 0);
|
||||
if (IS_ERR(tfm))
|
||||
return PTR_ERR(tfm);
|
||||
p_tfm = per_cpu_ptr(algo->tfms, cpu);
|
||||
|
|
Loading…
Reference in a new issue