Răsfoiți Sursa

IB/mlx4: mlx4_ib_fmr_alloc() should call mlx4_fmr_enable()

Currently mlx4_ib_fmr_alloc() calls mlx4_mr_enable() instead of
mlx4_fmr_enable().  The two functions are equivalent at the moment, but 
this is not really correct (and the change is needed to fix a bug).

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Jack Morgenstein 17 ani în urmă
părinte
comite
e6028c0e00
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/infiniband/hw/mlx4/mr.c

+ 1 - 1
drivers/infiniband/hw/mlx4/mr.c

@@ -199,7 +199,7 @@ struct ib_fmr *mlx4_ib_fmr_alloc(struct ib_pd *pd, int acc,
 	if (err)
 		goto err_free;
 
-	err = mlx4_mr_enable(to_mdev(pd->device)->dev, &fmr->mfmr.mr);
+	err = mlx4_fmr_enable(to_mdev(pd->device)->dev, &fmr->mfmr);
 	if (err)
 		goto err_mr;