Commit 7a434814 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Linus Torvalds
parent 4a6753ca
...@@ -731,7 +731,8 @@ asmlinkage long sys_mq_unlink(const char __user *u_name) ...@@ -731,7 +731,8 @@ asmlinkage long sys_mq_unlink(const char __user *u_name)
if (IS_ERR(name)) if (IS_ERR(name))
return PTR_ERR(name); return PTR_ERR(name);
mutex_lock(&mqueue_mnt->mnt_root->d_inode->i_mutex); mutex_lock_nested(&mqueue_mnt->mnt_root->d_inode->i_mutex,
I_MUTEX_PARENT);
dentry = lookup_one_len(name, mqueue_mnt->mnt_root, strlen(name)); dentry = lookup_one_len(name, mqueue_mnt->mnt_root, strlen(name));
if (IS_ERR(dentry)) { if (IS_ERR(dentry)) {
err = PTR_ERR(dentry); err = PTR_ERR(dentry);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment