diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2016-11-03 20:14:03 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-11-08 17:53:30 -0500 |
commit | 8fbfef7f505bba60fb57078b7621270ee57cd1c4 (patch) | |
tree | 85f7fa5f73c25b264148f9169f3e787141967a67 | |
parent | b73b8a1ba598236296a46103d81c10d629d9a470 (diff) |
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>
-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 = { | |||
2845 | .hdrsize = 0, | 2845 | .hdrsize = 0, |
2846 | .name = IPVS_GENL_NAME, | 2846 | .name = IPVS_GENL_NAME, |
2847 | .version = IPVS_GENL_VERSION, | 2847 | .version = IPVS_GENL_VERSION, |
2848 | .maxattr = IPVS_CMD_MAX, | 2848 | .maxattr = IPVS_CMD_ATTR_MAX, |
2849 | .netnsok = true, /* Make ipvsadm to work on netns */ | 2849 | .netnsok = true, /* Make ipvsadm to work on netns */ |
2850 | }; | 2850 | }; |
2851 | 2851 | ||