From: Dan Carpenter Date: Tue, 21 Oct 2014 08:28:12 +0000 (+0300) Subject: netfilter: ipset: off by one in ip_set_nfnl_get_byindex() X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~25^2~34^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f9f5e1b83abd2b37c67658e02a6fc9001831fa5;p=pandora-kernel.git netfilter: ipset: off by one in ip_set_nfnl_get_byindex() The ->ip_set_list[] array is initialized in ip_set_net_init() and it has ->ip_set_max elements so this check should be >= instead of > otherwise we are off by one. Signed-off-by: Dan Carpenter Acked-by: Jozsef Kadlecsik Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed