Skip to content

Commit 1e3f7b3

Browse files
hadarhenziondavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Or Gerlitz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6efb5fa commit 1e3f7b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx4/resource_tracker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static int mpt_mask(struct mlx4_dev *dev)
355355
return dev->caps.num_mpts - 1;
356356
}
357357

358-
static void *find_res(struct mlx4_dev *dev, int res_id,
358+
static void *find_res(struct mlx4_dev *dev, u64 res_id,
359359
enum mlx4_resource type)
360360
{
361361
struct mlx4_priv *priv = mlx4_priv(dev);

0 commit comments

Comments
 (0)