IB/mlx4: Put non zero value in max_ah device attribute
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 10 Nov 2016 09:30:58 +0000 (11:30 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 16 Mar 2017 02:18:26 +0000 (02:18 +0000)
commit1ae78beef536ac54f0d4de60446df620afa4082f
treeaa28ef3ecdc95ab3587a4d1b9bc002ca0f9dfff9
parentede1905be38b46ece20bf4b5af11080863b85a6a
IB/mlx4: Put non zero value in max_ah device attribute

commit 731e0415b4af3a133d0316e4dc8ef0ea57dc3fdf upstream.

Use INT_MAX since this is the max value the attribute can hold, though
hardware capability is unlimited.

Fixes: 225c7b1feef1 ('IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/infiniband/hw/mlx4/main.c