X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=ipc%2Fmqueue.c;h=c3b31179122c326342597d40cd58db11d51da940;hb=fe9ea91cde29125a3417890678f4d886cec4a71e;hp=ccf1f9fd263acdfae7dc56a87bceddd3170f69d9;hpb=4293242db153512dcfc7e7af9af683e5b97dd4ce;p=~andy%2Flinux diff --git a/ipc/mqueue.c b/ipc/mqueue.c index ccf1f9fd263..c3b31179122 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -433,9 +433,9 @@ static int mqueue_create(struct inode *dir, struct dentry *dentry, error = -EACCES; goto out_unlock; } - if (ipc_ns->mq_queues_count >= HARD_QUEUESMAX || - (ipc_ns->mq_queues_count >= ipc_ns->mq_queues_max && - !capable(CAP_SYS_RESOURCE))) { + + if (ipc_ns->mq_queues_count >= ipc_ns->mq_queues_max && + !capable(CAP_SYS_RESOURCE)) { error = -ENOSPC; goto out_unlock; }