Jack Morgenstein 6230bb234d net/mlx4_core: Check port out-of-range before using in mlx4_slave_cap
The range check was performed after using the port number.

Reverse this to prevent a potential array overflow.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-05-31 18:18:16 -04:00
..
2012-04-21 15:28:47 -04:00
2012-04-03 13:09:18 +02:00
2012-05-22 16:34:21 -07:00
2012-04-16 23:56:36 -04:00
2012-03-27 22:45:26 -04:00