[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080511200719.GM19058@joi>
Date: Sun, 11 May 2008 22:07:25 +0200
From: Marcin Slusarz <marcin.slusarz@...il.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Tom Tucker <tom@...ngridcomputing.com>,
"J. Bruce Fields" <bfields@...i.umich.edu>
Subject: [PATCH] net/sunrpc/xprtrdma: fix svc_rdma_create out of memory
error path
ERR_PTR takes negative errno as a parameter
Signed-off-by: Marcin Slusarz <marcin.slusarz@...il.com>
Cc: Tom Tucker <tom@...ngridcomputing.com>
Cc: J. Bruce Fields <bfields@...i.umich.edu>
---
compile tested only
---
net/sunrpc/xprtrdma/svc_rdma_transport.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c
--- a/net/sunrpc/xprtrdma/svc_rdma_transport.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c
@@ -661,7 +661,7 @@ static struct svc_xprt *svc_rdma_create(struct svc_serv *serv,
cma_xprt = rdma_create_xprt(serv, 1);
if (!cma_xprt)
- return ERR_PTR(ENOMEM);
+ return ERR_PTR(-ENOMEM);
xprt = &cma_xprt->sc_xprt;
listen_id = rdma_create_id(rdma_listen_handler, cma_xprt, RDMA_PS_TCP);
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists