diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2016-11-03 17:14:03 -0700 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-11-08 23:53:30 +0100 |
commit | 8fbfef7f505bba60fb57078b7621270ee57cd1c4 (patch) | |
tree | 85f7fa5f73c25b264148f9169f3e787141967a67 /net/netfilter/ipvs/ip_vs_ctl.c | |
parent | b73b8a1ba598236296a46103d81c10d629d9a470 (diff) | |
download | linux-stable-8fbfef7f505bba60fb57078b7621270ee57cd1c4.tar.gz linux-stable-8fbfef7f505bba60fb57078b7621270ee57cd1c4.tar.bz2 linux-stable-8fbfef7f505bba60fb57078b7621270ee57cd1c4.zip |
ipvs: use IPVS_CMD_ATTR_MAX for family.maxattr
family.maxattr is the max index for policy[], the size of
ops[] is determined with ARRAY_SIZE().
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_ctl.c')
-rw-r--r-- | net/netfilter/ipvs/ip_vs_ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index c3c809b2e712..a6e44ef2ec9a 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c @@ -2845,7 +2845,7 @@ static struct genl_family ip_vs_genl_family = { .hdrsize = 0, .name = IPVS_GENL_NAME, .version = IPVS_GENL_VERSION, - .maxattr = IPVS_CMD_MAX, + .maxattr = IPVS_CMD_ATTR_MAX, .netnsok = true, /* Make ipvsadm to work on netns */ }; |