]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc423601a85787fbbcb1de6d55347e1a21ec7fe1e
tree85f7fa5f73c25b264148f9169f3e787141967a67
parent2c6c91c6b45a7d8802ab95f8eafcaf8b14dc2540
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