svn commit: r294233 - head/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Sun Jan 17 19:28:15 UTC 2016
Author: dchagin
Date: Sun Jan 17 19:28:13 2016
New Revision: 294233
URL: https://svnweb.freebsd.org/changeset/base/294233
Log:
Prevent double free of control in common sendmsg path as sosend
already freeing it.
Modified:
head/sys/compat/linux/linux_socket.c
Modified: head/sys/compat/linux/linux_socket.c
==============================================================================
--- head/sys/compat/linux/linux_socket.c Sun Jan 17 18:39:01 2016 (r294232)
+++ head/sys/compat/linux/linux_socket.c Sun Jan 17 19:28:13 2016 (r294233)
@@ -1164,6 +1164,7 @@ linux_sendmsg_common(struct thread *td,
msg.msg_iov = iov;
msg.msg_flags = 0;
error = linux_sendit(td, s, &msg, flags, control, UIO_USERSPACE);
+ control = NULL;
bad:
m_freem(control);
More information about the svn-src-all
mailing list