OSDN Git Service

ipv6: sr: fix passing wrong flags to crypto_alloc_shash()
authorEric Biggers <ebiggers@google.com>
Sat, 30 Jun 2018 22:26:56 +0000 (15:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jul 2018 11:36:37 +0000 (20:36 +0900)
commitfc9c2029e37c3ae9efc28bf47045e0b87e09660c
treef58aa4a0dab858796545a64f2355460b7f66789d
parent603d4cf8fe095b1ee78f423d514427be507fb513
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 <ebiggers@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/seg6_hmac.c