projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b59a39
)
iw_cxgb4: fix misuse of integer variable
author
Steve Wise
<swise@opengridcomputing.com>
Tue, 25 Jul 2017 13:51:15 +0000
(06:51 -0700)
committer
Doug Ledford
<dledford@redhat.com>
Wed, 16 Aug 2017 15:43:21 +0000
(11:43 -0400)
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>
drivers/infiniband/hw/cxgb4/mem.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/cxgb4/mem.c
b/drivers/infiniband/hw/cxgb4/mem.c
index 5332f06b99ba4cfa3ef404ec816d09fb68ec0ddf..c2fba76becd4e985a35b9ed3d1ec1314c955706b 100644
(file)
--- 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);