diff options
| author | Eric Biggers <[email protected]> | 2018-06-30 22:26:56 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-07-02 11:36:37 +0000 |
| commit | fc9c2029e37c3ae9efc28bf47045e0b87e09660c (patch) | |
| tree | f58aa4a0dab858796545a64f2355460b7f66789d | |
| parent | net: fix use-after-free in GRO with ESP (diff) | |
| download | kernel-fc9c2029e37c3ae9efc28bf47045e0b87e09660c.tar.gz kernel-fc9c2029e37c3ae9efc28bf47045e0b87e09660c.zip | |
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: bf355b8d2c30 ("ipv6: sr: add core files for SR HMAC support")
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
| -rw-r--r-- | net/ipv6/seg6_hmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/seg6_hmac.c b/net/ipv6/seg6_hmac.c index 33fb35cbfac1..558fe8cc6d43 100644 --- a/net/ipv6/seg6_hmac.c +++ b/net/ipv6/seg6_hmac.c @@ -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); |
