diff options
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/uipc_mqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c index 0f507274556b..81495eafadd7 100644 --- a/sys/kern/uipc_mqueue.c +++ b/sys/kern/uipc_mqueue.c @@ -1838,6 +1838,7 @@ mq_open(struct thread *td, struct mq_open_args *uap) fdp = td->td_proc->p_fd; flags = FFLAGS(uap->flags); cmode = (((uap->mode & ~fdp->fd_cmask) & ALLPERMS) & ~S_ISTXT); + mq = NULL; if ((flags & O_CREAT) && (uap->attr != NULL)) { error = copyin(uap->attr, &attr, sizeof(attr)); if (error) @@ -1863,7 +1864,6 @@ mq_open(struct thread *td, struct mq_open_args *uap) if (len < 2 || path[0] != '/' || index(path + 1, '/') != NULL) return (EINVAL); - fdp = td->td_proc->p_fd; error = falloc(td, &fp, &fd); if (error) return (error); |
