Author: kib
Date: Fri Oct 16 14:55:39 2015
New Revision: 289423
URL: https://svnweb.freebsd.org/changeset/base/289423

Log:
  If falloc_caps() failed, cleanup needs to be performed.  This is a bug
  in r289026.
  
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/kern/kern_fork.c

Modified: head/sys/kern/kern_fork.c
==============================================================================
--- head/sys/kern/kern_fork.c   Fri Oct 16 14:45:21 2015        (r289422)
+++ head/sys/kern/kern_fork.c   Fri Oct 16 14:55:39 2015        (r289423)
@@ -848,7 +848,7 @@ fork1(struct thread *td, int flags, int 
        if (flags & RFPROCDESC) {
                error = falloc_caps(td, &fp_procdesc, procdescp, 0, fcaps);
                if (error != 0)
-                       return (error);
+                       goto fail2;
        }
 
        mem_charged = 0;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to