[NFS SUNRPC] fix

From: James Morris (jmorris_at_redhat.com)
Date: 02/27/04

  • Next message: Kronos: "Re: [2.6.3] Mouse loosing sync (again)"
    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/
    

  • Next message: Kronos: "Re: [2.6.3] Mouse loosing sync (again)"

    Relevant Pages

    • Re: [PATCH] add transport class symlink to device object
      ... isn't the fix to all of this to combine Greg and James' ... James' one fails for ttys because the class name isn't unique. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] The RAW_GETBIND compat_ioctl fails
      ... The RAW_GETBIND compatibility ioctl call does convert properly between ... and the ioctl call fails. ... James ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [NFS SUNRPC] fix
      ... > The patch below fixes a bug in the error handling code of ... > release the non existent socket. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)