aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/mqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/mqueue.c')
-rw-r--r--ipc/mqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index e1e7b9635f5d..80b35ffca25d 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -769,7 +769,7 @@ SYSCALL_DEFINE1(mq_unlink, const char __user *, u_name)
769 769
770 inode = dentry->d_inode; 770 inode = dentry->d_inode;
771 if (inode) 771 if (inode)
772 atomic_inc(&inode->i_count); 772 ihold(inode);
773 err = mnt_want_write(ipc_ns->mq_mnt); 773 err = mnt_want_write(ipc_ns->mq_mnt);
774 if (err) 774 if (err)
775 goto out_err; 775 goto out_err;