svn commit: r321019 - stable/10/sys/netinet

Dmitry Chagin dchagin at FreeBSD.org
Sat Jul 15 17:03:37 UTC 2017


Author: dchagin
Date: Sat Jul 15 17:03:35 2017
New Revision: 321019
URL: https://svnweb.freebsd.org/changeset/base/321019

Log:
  MFC r284613 (by tuexen@):
  
  When using KTRACE, set a variable to the appropriate value and don't
  leave it initialized at NULL.

Modified:
  stable/10/sys/netinet/sctp_syscalls.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/sctp_syscalls.c
==============================================================================
--- stable/10/sys/netinet/sctp_syscalls.c	Sat Jul 15 17:00:43 2017	(r321018)
+++ stable/10/sys/netinet/sctp_syscalls.c	Sat Jul 15 17:03:35 2017	(r321019)
@@ -277,6 +277,10 @@ sys_sctp_generic_sendmsg (td, uap)
 	auio.uio_td = td;
 	auio.uio_offset = 0;			/* XXX */
 	auio.uio_resid = 0;
+#ifdef KTRACE
+	if (KTRPOINT(td, KTR_GENIO))
+		ktruio = cloneuio(&auio);
+#endif /* KTRACE */
 	len = auio.uio_resid = uap->mlen;
 	CURVNET_SET(so->so_vnet);
 	error = sctp_lower_sosend(so, to, &auio, (struct mbuf *)NULL,
@@ -400,6 +404,10 @@ sys_sctp_generic_sendmsg_iov(td, uap)
 			goto sctp_bad;
 		}
 	}
+#ifdef KTRACE
+	if (KTRPOINT(td, KTR_GENIO))
+		ktruio = cloneuio(&auio);
+#endif /* KTRACE */
 	len = auio.uio_resid;
 	CURVNET_SET(so->so_vnet);
 	error = sctp_lower_sosend(so, to, &auio,


More information about the svn-src-stable mailing list