Author: hiren
Date: Mon Sep 26 15:45:30 2016
New Revision: 306348
URL: https://svnweb.freebsd.org/changeset/base/306348

Log:
  Revert r306337. dhw@ reproted a panic which seems related to this and bde@ has
  raised some issues.

Modified:
  head/sys/kern/uipc_syscalls.c

Modified: head/sys/kern/uipc_syscalls.c
==============================================================================
--- head/sys/kern/uipc_syscalls.c       Mon Sep 26 15:38:02 2016        
(r306347)
+++ head/sys/kern/uipc_syscalls.c       Mon Sep 26 15:45:30 2016        
(r306348)
@@ -685,7 +685,7 @@ sys_socketpair(struct thread *td, struct
 static int
 sendit(struct thread *td, int s, struct msghdr *mp, int flags)
 {
-       struct mbuf *control = NULL;
+       struct mbuf *control;
        struct sockaddr *to;
        int error;
 
@@ -737,8 +737,6 @@ sendit(struct thread *td, int s, struct 
 
 bad:
        free(to, M_SONAME);
-       if (control)
-               m_freem(control);
        return (error);
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to