Eli Cohen 0926f91083 mlx4_en: Fix out of bounds array access
When searching for a free entry in either mlx4_register_vlan() or
mlx4_register_mac(), and there is no free entry, the loop terminates without
updating the local variable free thus causing out of array bounds access. Fix
this by adding a proper check outside the loop.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-10-25 12:14:11 -07:00
..
2010-08-28 15:37:04 -07:00
2010-08-24 14:57:09 -07:00
2010-08-24 14:57:09 -07:00
2010-08-24 14:57:09 -07:00
2010-08-24 14:57:09 -07:00
2010-06-03 03:18:23 -07:00
2010-10-25 12:14:11 -07:00