diff options
-rw-r--r-- | ipc/mqueue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 0b5ecbe5f045..554ac368be79 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -731,7 +731,8 @@ asmlinkage long sys_mq_unlink(const char __user *u_name) | |||
731 | if (IS_ERR(name)) | 731 | if (IS_ERR(name)) |
732 | return PTR_ERR(name); | 732 | return PTR_ERR(name); |
733 | 733 | ||
734 | mutex_lock(&mqueue_mnt->mnt_root->d_inode->i_mutex); | 734 | mutex_lock_nested(&mqueue_mnt->mnt_root->d_inode->i_mutex, |
735 | I_MUTEX_PARENT); | ||
735 | dentry = lookup_one_len(name, mqueue_mnt->mnt_root, strlen(name)); | 736 | dentry = lookup_one_len(name, mqueue_mnt->mnt_root, strlen(name)); |
736 | if (IS_ERR(dentry)) { | 737 | if (IS_ERR(dentry)) { |
737 | err = PTR_ERR(dentry); | 738 | err = PTR_ERR(dentry); |