Messages in this thread | | | Date | Sun, 11 May 2008 21:20:22 -0400 | Subject | Re: [PATCH] net/sunrpc/xprtrdma: fix svc_rdma_create out of memory error path | From | "J. Bruce Fields" <> |
| |
Thanks! But I think Tom is just doing some final revisions on a patch series that already includes this fix?
--b.
On Sun, May 11, 2008 at 10:07:25PM +0200, Marcin Slusarz wrote: > ERR_PTR takes negative errno as a parameter > > Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> > Cc: Tom Tucker <tom@opengridcomputing.com> > Cc: J. Bruce Fields <bfields@citi.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); > --
| |