From: Jack Morgenstein Date: Thu, 14 Feb 2008 18:39:36 +0000 (-0800) Subject: IB/mlx4: mlx4_ib_fmr_alloc() should call mlx4_fmr_enable() X-Git-Tag: v2.6.25-rc2~8^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e6028c0e004d334bb9ed75d4c918f4c763af1b9f;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/mlx4/mr.c b/drivers/infiniband/hw/mlx4/mr.c index 7dc91a3e712..fe2c2e94a5f 100644 --- a/drivers/infiniband/hw/mlx4/mr.c +++ b/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;