svn commit: r306348 - head/sys/kern

Hiren Panchasara hiren at FreeBSD.org
Mon Sep 26 15:45:31 UTC 2016


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);
 }
 


More information about the svn-src-all mailing list