aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/uipc_usrreq.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2015-06-12 06:28:22 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2015-06-12 06:28:22 +0000
commit3331a33a42a0eb3e4406c1ae09f873388ed42f7e (patch)
treea0fa6851af91fabc573def9cd51d35a6692c7e2e /sys/kern/uipc_usrreq.c
parent217ff3d0448bba07be2d64eb57436d7a789ef51c (diff)
downloadsrc-3331a33a42a0eb3e4406c1ae09f873388ed42f7e.tar.gz
src-3331a33a42a0eb3e4406c1ae09f873388ed42f7e.zip
ussreq: use saved fdp pointer insted of td->td_proc->p_fd
No functional changes.
Notes
Notes: svn path=/head/; revision=284294
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r--sys/kern/uipc_usrreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index ef0b83c9b53c..808020e5e61d 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1787,7 +1787,7 @@ unp_externalize(struct mbuf *control, struct mbuf **controlp, int flags)
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);