summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2005-11-27 22:59:47 +0000
committerDavid Xu <davidxu@FreeBSD.org>2005-11-27 22:59:47 +0000
commitf72b11a40c5d60b1846259cda3a7902820f23a7d (patch)
treede0103b560d7aa91d5aa33aa25823cba454304d9 /sys
parent9f7e6c7ceb0a37937f66ca030fd1060591ea447d (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/uipc_mqueue.c2
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);