From: Dan Carpenter Date: Tue, 10 Jul 2012 20:33:36 +0000 (+0000) Subject: net/mlx4: off by one in parse_trans_rule() X-Git-Tag: v3.6-rc1~125^2~159 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=447458c01f4c765ab37ac7b380e60d977daae4c5;p=pandora-kernel.git net/mlx4: off by one in parse_trans_rule() This should be ">=" here instead of ">". MLX4_NET_TRANS_RULE_NUM is 6. We use "spec->id" as an array offset into the __rule_hw_sz[] and __sw_id_hw[] arrays which have 6 elements. Signed-off-by: Dan Carpenter Acked-by: Hadar Hen Zion Signed-off-by: David S. Miller --- Reading git-diff-tree failed