aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2017-07-25 06:51:15 -0700
committerDoug Ledford <dledford@redhat.com>2017-08-16 11:43:21 -0400
commitd4ba61d218822578dcf6c2453a38e000b0ea01e6 (patch)
treec27f5df236f27303f2db40ba5d19038f75ca16f2 /drivers/infiniband/hw/cxgb4
parentIB/hns: fix memory leak on ah on error return path (diff)
downloadlinux-dev-d4ba61d218822578dcf6c2453a38e000b0ea01e6.tar.xz
linux-dev-d4ba61d218822578dcf6c2453a38e000b0ea01e6.zip
iw_cxgb4: fix misuse of integer variable
Fixes: ee30f7d507c0 ("iw_cxgb4: Max fastreg depth depends on DSGL support") Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4')
-rw-r--r--drivers/infiniband/hw/cxgb4/mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c
index 5332f06b99ba..c2fba76becd4 100644
--- a/drivers/infiniband/hw/cxgb4/mem.c
+++ b/drivers/infiniband/hw/cxgb4/mem.c
@@ -661,7 +661,7 @@ struct ib_mr *c4iw_alloc_mr(struct ib_pd *pd,
rhp = php->rhp;
if (mr_type != IB_MR_TYPE_MEM_REG ||
- max_num_sg > t4_max_fr_depth(&rhp->rdev.lldi.ulptx_memwrite_dsgl &&
+ max_num_sg > t4_max_fr_depth(rhp->rdev.lldi.ulptx_memwrite_dsgl &&
use_dsgl))
return ERR_PTR(-EINVAL);