From 2a264e2b0bbb533d11a94ec39c4ea4e9f3de8c9d Mon Sep 17 00:00:00 2001 From: Vladimir Davydov Date: Fri, 22 Mar 2013 15:04:51 -0700 Subject: [PATCH] --- yaml --- r: 361676 b: refs/heads/master c: 38d78e587d4960d0db94add518d27ee74bad2301 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/ipc/mqueue.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index acc60ca3bceb..7f5a572479b4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ca4b3f302c90de5e516296e581c31c80125cd24b +refs/heads/master: 38d78e587d4960d0db94add518d27ee74bad2301 diff --git a/trunk/ipc/mqueue.c b/trunk/ipc/mqueue.c index e5c4f609f22c..3953fda2e8bd 100644 --- a/trunk/ipc/mqueue.c +++ b/trunk/ipc/mqueue.c @@ -840,7 +840,8 @@ SYSCALL_DEFINE4(mq_open, const char __user *, u_name, int, oflag, umode_t, mode, fd = error; } mutex_unlock(&root->d_inode->i_mutex); - mnt_drop_write(mnt); + if (!ro) + mnt_drop_write(mnt); out_putname: putname(name); return fd;