X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=ipc%2Fmqueue.c;h=c3b31179122c326342597d40cd58db11d51da940;hb=25c3f231bc880acad1146be13aa5e672a9ffbf81;hp=ccf1f9fd263acdfae7dc56a87bceddd3170f69d9;hpb=f743166da7e93b617dd93120cdb5edcc8b84c464;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/ipc/mqueue.c b/ipc/mqueue.c index ccf1f9f..c3b3117 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; }