net/mlx4: off by one in parse_trans_rule()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 Jul 2012 20:33:36 +0000 (20:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 05:57:43 +0000 (22:57 -0700)
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 <dan.carpenter@oracle.com>
Acked-by: Hadar Hen Zion <hadarh@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found