diff options
author | Eli Cohen | 2010-10-25 04:56:47 +0200 |
---|---|---|
committer | David S. Miller | 2010-10-25 21:14:11 +0200 |
commit | 0926f91083f34d047abc74f1ca4fa6a9c161f7db (patch) | |
tree | 751135348a369dcdf85100b2cc7c7f8aefb508da /crypto/sha256_generic.c | |
parent | macb: Don't re-enable interrupts while in polling mode (diff) | |
download | kernel-qcow2-linux-0926f91083f34d047abc74f1ca4fa6a9c161f7db.tar.gz kernel-qcow2-linux-0926f91083f34d047abc74f1ca4fa6a9c161f7db.tar.xz kernel-qcow2-linux-0926f91083f34d047abc74f1ca4fa6a9c161f7db.zip |
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>
Diffstat (limited to 'crypto/sha256_generic.c')
0 files changed, 0 insertions, 0 deletions