commit | 0926f91083f34d047abc74f1ca4fa6a9c161f7db | [log] [tgz] |
---|---|---|
author | Eli Cohen <eli@dev.mellanox.co.il> | Mon Oct 25 02:56:47 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Oct 25 12:14:11 2010 -0700 |
tree | 751135348a369dcdf85100b2cc7c7f8aefb508da | |
parent | b336369c1e1ad88495895260a9068eb18bc48b6c [diff] |
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>