Skip to content

Commit fc9c202

Browse files
ebiggersdavem330
authored andcommitted
ipv6: sr: fix passing wrong flags to crypto_alloc_shash()
The 'mask' argument to crypto_alloc_shash() uses the CRYPTO_ALG_* flags, not 'gfp_t'. So don't pass GFP_KERNEL to it. Fixes: bf355b8 ("ipv6: sr: add core files for SR HMAC support") Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 603d4cf commit fc9c202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/seg6_hmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ static int seg6_hmac_init_algo(void)
373373
return -ENOMEM;
374374

375375
for_each_possible_cpu(cpu) {
376-
tfm = crypto_alloc_shash(algo->name, 0, GFP_KERNEL);
376+
tfm = crypto_alloc_shash(algo->name, 0, 0);
377377
if (IS_ERR(tfm))
378378
return PTR_ERR(tfm);
379379
p_tfm = per_cpu_ptr(algo->tfms, cpu);

0 commit comments

Comments
 (0)