ipvs: use IPVS_CMD_ATTR_MAX for family.maxattr
authorWANG Cong <xiyou.wangcong@gmail.com>
Fri, 4 Nov 2016 00:14:03 +0000 (17:14 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 Nov 2016 22:53:30 +0000 (23:53 +0100)
commit8fbfef7f505bba60fb57078b7621270ee57cd1c4
tree85f7fa5f73c25b264148f9169f3e787141967a67
parentb73b8a1ba598236296a46103d81c10d629d9a470
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>
net/netfilter/ipvs/ip_vs_ctl.c