[NFS SUNRPC] fix
From: James Morris (jmorris_at_redhat.com)
Date: 02/27/04
- Previous message: Vojtech Pavlik: "Re: [2.6.3] Mouse loosing sync (again)"
- Next in thread: Trond Myklebust: "Re: [NFS SUNRPC] fix"
- Reply: Trond Myklebust: "Re: [NFS SUNRPC] fix"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 Feb 2004 16:31:40 -0500 (EST) To: trond.myklebust@fys.uio.no
The patch below fixes a bug in the error handling code of
xprt_create_socket(). If sock_create() fails, we should not try and
release the non existent socket.
This fix is by James Carter <jwcart2@epoch.ncsc.mil>.
Please apply.
- James
--
James Morris
<jmorris@redhat.com>
diff -urN -X dontdiff linux-2.6.3-mm4.o/net/sunrpc/xprt.c linux-2.6.3-mm4.w/net/sunrpc/xprt.c
--- linux-2.6.3-mm4.o/net/sunrpc/xprt.c 2004-02-25 22:42:16.000000000 -0500
+++ linux-2.6.3-mm4.w/net/sunrpc/xprt.c 2004-02-27 16:13:34.230834288 -0500
@@ -1581,7 +1581,7 @@
if ((err = sock_create(PF_INET, type, proto, &sock)) < 0) {
printk("RPC: can't create socket (%d).\n", -err);
- goto failed;
+ return NULL;
}
/* If the caller has the capability, bind to a reserved port */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Vojtech Pavlik: "Re: [2.6.3] Mouse loosing sync (again)"
- Next in thread: Trond Myklebust: "Re: [NFS SUNRPC] fix"
- Reply: Trond Myklebust: "Re: [NFS SUNRPC] fix"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|