summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHadar Hen Zion <hadarh@mellanox.com>2013-03-21 05:55:54 +0000
committerDavid S. Miller <davem@davemloft.net>2013-03-21 12:05:08 -0400
commit1e3f7b324e46b772dec1bb6dd96ae745fc085401 (patch)
tree12f12b33ed7d909a3f8fadbb891f82da1ed3b6e7 /drivers
parent6efb5fac4d6b617972ab5a10bf67e0eba2c2d212 (diff)
downloadlinux-stable-1e3f7b324e46b772dec1bb6dd96ae745fc085401.tar.gz
linux-stable-1e3f7b324e46b772dec1bb6dd96ae745fc085401.tar.bz2
linux-stable-1e3f7b324e46b772dec1bb6dd96ae745fc085401.zip
net/mlx4_core: Always use 64 bit resource ID when doing lookup
One of the resource tracker code paths was wrongly using int and not u64 for resource tracking IDs, fix it. Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/resource_tracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
index 0d1d9679179c..b0ccdb55ca46 100644
--- a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
+++ b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
@@ -355,7 +355,7 @@ static int mpt_mask(struct mlx4_dev *dev)
return dev->caps.num_mpts - 1;
}
-static void *find_res(struct mlx4_dev *dev, int res_id,
+static void *find_res(struct mlx4_dev *dev, u64 res_id,
enum mlx4_resource type)
{
struct mlx4_priv *priv = mlx4_priv(dev);