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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Jul 2018 12:28:43 +0000 (14:28 +0200)
commitd10c0baaae3f84185db3b3076a87d4343c9d62e6
treedef88e644048abc7421c3e996c7e01b1f7ad3a6a
parente34e92d8b689179a6715518346a687bc1e87911a
ipv6: sr: fix passing wrong flags to crypto_alloc_shash()

[ Upstream commit fc9c2029e37c3ae9efc28bf47045e0b87e09660c ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/seg6_hmac.c