projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28d0325
)
svcrdma: fix error handling of rdma_alloc_frmr()
author
Wei Yongjun
<yjwei@cn.fujitsu.com>
Thu, 25 Jun 2009 08:35:44 +0000
(16:35 +0800)
committer
J. Bruce Fields
<bfields@citi.umich.edu>
Fri, 3 Jul 2009 14:14:59 +0000
(10:14 -0400)
ib_alloc_fast_reg_mr() and ib_alloc_fast_reg_page_list() returns
ERR_PTR() and not NULL. Compile tested only.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
net/sunrpc/xprtrdma/svc_rdma_transport.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/xprtrdma/svc_rdma_transport.c
b/net/sunrpc/xprtrdma/svc_rdma_transport.c
index 5151f9f6c5731b168dc22ac63657fd84fed8866c..0cf5e8c27a105f399c02e94789227344f5d98934 100644
(file)
--- a/
net/sunrpc/xprtrdma/svc_rdma_transport.c
+++ b/
net/sunrpc/xprtrdma/svc_rdma_transport.c
@@
-730,12
+730,12
@@
static struct svc_rdma_fastreg_mr *rdma_alloc_frmr(struct svcxprt_rdma *xprt)
goto err;
mr = ib_alloc_fast_reg_mr(xprt->sc_pd, RPCSVC_MAXPAGES);
- if (
!mr
)
+ if (
IS_ERR(mr)
)
goto err_free_frmr;
pl = ib_alloc_fast_reg_page_list(xprt->sc_cm_id->device,
RPCSVC_MAXPAGES);
- if (
!pl
)
+ if (
IS_ERR(pl)
)
goto err_free_mr;
frmr->mr = mr;