diff options
author | Eugenia Emantayev <eugenia@mellanox.co.il> | 2012-02-15 10:22:49 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-15 23:50:15 +0400 |
commit | 75c6062cb797afe624d65c955eb867035622e782 (patch) | |
tree | 756b4b28f3316befae7dcd6d540eb9924a87031d /drivers/bluetooth | |
parent | 33b5d30cd8b200024d55ac5830c9efde1102ef4c (diff) | |
download | linux-75c6062cb797afe624d65c955eb867035622e782.tar.xz |
mlx4: fix buffer overrun
When passing MLX4_UC_STEER=1 it was translated to value 2
after mlx4_QP_ATTACH_wrapper. Therefore in new_steering_entry()
unicast steer entries were added to index 2 of array of size 2.
Fixing this bug by shift right to one position.
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.co.il>
Reviewed-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/bluetooth')
0 files changed, 0 insertions, 0 deletions