Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67134
b: refs/heads/master
c: cf78237
h: refs/heads/master
v: v3
  • Loading branch information
Roland Dreier committed Oct 10, 2007
1 parent 693665c commit 5022a7c
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: 5b0bf5e25efea77103b0ac7c8057cd56c778ef41
refs/heads/master: cf78237d7b0e683d172e40b1e85b26ca49a3cdba
2 changes: 1 addition & 1 deletion trunk/drivers/net/mlx4/mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ int __devinit mlx4_init_mr_table(struct mlx4_dev *dev)
goto err_buddy;

if (dev->caps.reserved_mtts) {
if (mlx4_alloc_mtt_range(dev, ilog2(dev->caps.reserved_mtts)) == -1) {
if (mlx4_alloc_mtt_range(dev, fls(dev->caps.reserved_mtts - 1)) == -1) {
mlx4_warn(dev, "MTT table of order %d is too small.\n",
mr_table->mtt_buddy.max_order);
err = -ENOMEM;
Expand Down

0 comments on commit 5022a7c

Please sign in to comment.