Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jun 2015 06:28:23 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284294 - head/sys/kern
Message-ID:  <201506120628.t5C6SN5X084978@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Fri Jun 12 06:28:22 2015
New Revision: 284294
URL: https://svnweb.freebsd.org/changeset/base/284294

Log:
  ussreq: use saved fdp pointer insted of td->td_proc->p_fd
  
  No functional changes.

Modified:
  head/sys/kern/uipc_usrreq.c

Modified: head/sys/kern/uipc_usrreq.c
==============================================================================
--- head/sys/kern/uipc_usrreq.c	Fri Jun 12 03:26:05 2015	(r284293)
+++ head/sys/kern/uipc_usrreq.c	Fri Jun 12 06:28:22 2015	(r284294)
@@ -1787,7 +1787,7 @@ unp_externalize(struct mbuf *control, st
 			fdp = (int *)
 			    CMSG_DATA(mtod(*controlp, struct cmsghdr *));
 			if (fdallocn(td, 0, fdp, newfds) != 0) {
-				FILEDESC_XUNLOCK(td->td_proc->p_fd);
+				FILEDESC_XUNLOCK(fdesc);
 				error = EMSGSIZE;
 				unp_freerights(fdep, newfds);
 				m_freem(*controlp);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506120628.t5C6SN5X084978>