ussreq: use saved fdp pointer insted of td->td_proc->p_fd

No functional changes.
This commit is contained in:
mjg 2015-06-12 06:28:22 +00:00
parent aca9f1ba41
commit a75e86bc6b

View File

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