Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96057
b: refs/heads/master
c: c5057dd
h: refs/heads/master
i:
  96055: 9e351f3
v: v3
  • Loading branch information
Oren Duer authored and Roland Dreier committed May 5, 2008
1 parent 1152576 commit 4d3872d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf04690885972eaba830ee761de545a6956197e6
refs/heads/master: c5057ddccbcb4bf363af628d7963a7475f4114a7
2 changes: 1 addition & 1 deletion trunk/drivers/net/mlx4/mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ int mlx4_fmr_alloc(struct mlx4_dev *dev, u32 pd, u32 access, int max_pages,
u64 mtt_seg;
int err = -ENOMEM;

if (page_shift < 12 || page_shift >= 32)
if (page_shift < (ffs(dev->caps.page_size_cap) - 1) || page_shift >= 32)
return -EINVAL;

/* All MTTs must fit in the same page */
Expand Down

0 comments on commit 4d3872d

Please sign in to comment.