diff options
Diffstat (limited to 'ipc/mqueue.c')
-rw-r--r-- | ipc/mqueue.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 6828e2c93cef..609d53f7a915 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -145,9 +145,10 @@ static struct inode *mqueue_get_inode(struct super_block *sb, | |||
145 | info->qsize = 0; | 145 | info->qsize = 0; |
146 | info->user = NULL; /* set when all is ok */ | 146 | info->user = NULL; /* set when all is ok */ |
147 | memset(&info->attr, 0, sizeof(info->attr)); | 147 | memset(&info->attr, 0, sizeof(info->attr)); |
148 | info->attr.mq_maxmsg = min(ipc_ns->mq_msg_max, DFLT_MSG); | 148 | info->attr.mq_maxmsg = min(ipc_ns->mq_msg_max, |
149 | info->attr.mq_msgsize = | 149 | ipc_ns->mq_msg_default); |
150 | min(ipc_ns->mq_msgsize_max, DFLT_MSGSIZE); | 150 | info->attr.mq_msgsize = min(ipc_ns->mq_msgsize_max, |
151 | ipc_ns->mq_msgsize_default); | ||
151 | if (attr) { | 152 | if (attr) { |
152 | info->attr.mq_maxmsg = attr->mq_maxmsg; | 153 | info->attr.mq_maxmsg = attr->mq_maxmsg; |
153 | info->attr.mq_msgsize = attr->mq_msgsize; | 154 | info->attr.mq_msgsize = attr->mq_msgsize; |
@@ -1261,6 +1262,8 @@ int mq_init_ns(struct ipc_namespace *ns) | |||
1261 | ns->mq_queues_max = DFLT_QUEUESMAX; | 1262 | ns->mq_queues_max = DFLT_QUEUESMAX; |
1262 | ns->mq_msg_max = DFLT_MSGMAX; | 1263 | ns->mq_msg_max = DFLT_MSGMAX; |
1263 | ns->mq_msgsize_max = DFLT_MSGSIZEMAX; | 1264 | ns->mq_msgsize_max = DFLT_MSGSIZEMAX; |
1265 | ns->mq_msg_default = DFLT_MSG; | ||
1266 | ns->mq_msgsize_default = DFLT_MSGSIZE; | ||
1264 | 1267 | ||
1265 | ns->mq_mnt = kern_mount_data(&mqueue_fs_type, ns); | 1268 | ns->mq_mnt = kern_mount_data(&mqueue_fs_type, ns); |
1266 | if (IS_ERR(ns->mq_mnt)) { | 1269 | if (IS_ERR(ns->mq_mnt)) { |