aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/mqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/mqueue.c')
-rw-r--r--ipc/mqueue.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 60f7a27f7a9e..34262c11f480 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -742,8 +742,11 @@ asmlinkage long sys_mq_unlink(const char __user *u_name)
742 inode = dentry->d_inode; 742 inode = dentry->d_inode;
743 if (inode) 743 if (inode)
744 atomic_inc(&inode->i_count); 744 atomic_inc(&inode->i_count);
745 745 err = mnt_want_write(mqueue_mnt);
746 if (err)
747 goto out_err;
746 err = vfs_unlink(dentry->d_parent->d_inode, dentry); 748 err = vfs_unlink(dentry->d_parent->d_inode, dentry);
749 mnt_drop_write(mqueue_mnt);
747out_err: 750out_err:
748 dput(dentry); 751 dput(dentry);
749 752