From: Liping Zhang Date: Wed, 12 Oct 2016 13:10:45 +0000 (+0800) Subject: netfilter: nft_hash: add missing NFTA_HASH_OFFSET's nla_policy X-Git-Tag: Ubuntu-4.10.0-19.21~2281^2~53^2~7 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5751e175c60be1b4113d1e9bfa011b58ec01f104;p=mirror_ubuntu-artful-kernel.git netfilter: nft_hash: add missing NFTA_HASH_OFFSET's nla_policy Missing the nla_policy description will also miss the validation check in kernel. Fixes: 70ca767ea1b2 ("netfilter: nft_hash: Add hash offset value") Signed-off-by: Liping Zhang Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nft_hash.c b/net/netfilter/nft_hash.c index 09473b415b95..baf694de3935 100644 --- a/net/netfilter/nft_hash.c +++ b/net/netfilter/nft_hash.c @@ -44,6 +44,7 @@ static const struct nla_policy nft_hash_policy[NFTA_HASH_MAX + 1] = { [NFTA_HASH_LEN] = { .type = NLA_U32 }, [NFTA_HASH_MODULUS] = { .type = NLA_U32 }, [NFTA_HASH_SEED] = { .type = NLA_U32 }, + [NFTA_HASH_OFFSET] = { .type = NLA_U32 }, }; static int nft_hash_init(const struct nft_ctx *ctx,