aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 5d9fd4c6d1f5..c77eedd2ac66 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1007,7 +1007,7 @@ static noinline int do_loopback(struct nameidata *nd, char *old_name,
1007 1007
1008out: 1008out:
1009 up_write(&namespace_sem); 1009 up_write(&namespace_sem);
1010 path_release(&old_nd); 1010 path_put(&old_nd.path);
1011 return err; 1011 return err;
1012} 1012}
1013 1013
@@ -1126,8 +1126,8 @@ out1:
1126out: 1126out:
1127 up_write(&namespace_sem); 1127 up_write(&namespace_sem);
1128 if (!err) 1128 if (!err)
1129 path_release(&parent_nd); 1129 path_put(&parent_nd.path);
1130 path_release(&old_nd); 1130 path_put(&old_nd.path);
1131 return err; 1131 return err;
1132} 1132}
1133 1133
@@ -1512,7 +1512,7 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
1512 retval = do_new_mount(&nd, type_page, flags, mnt_flags, 1512 retval = do_new_mount(&nd, type_page, flags, mnt_flags,
1513 dev_name, data_page); 1513 dev_name, data_page);
1514dput_out: 1514dput_out:
1515 path_release(&nd); 1515 path_put(&nd.path);
1516 return retval; 1516 return retval;
1517} 1517}
1518 1518
@@ -1768,7 +1768,7 @@ asmlinkage long sys_pivot_root(const char __user * new_root,
1768 1768
1769 error = security_sb_pivotroot(&old_nd, &new_nd); 1769 error = security_sb_pivotroot(&old_nd, &new_nd);
1770 if (error) { 1770 if (error) {
1771 path_release(&old_nd); 1771 path_put(&old_nd.path);
1772 goto out1; 1772 goto out1;
1773 } 1773 }
1774 1774
@@ -1831,15 +1831,15 @@ asmlinkage long sys_pivot_root(const char __user * new_root,
1831 chroot_fs_refs(&user_nd, &new_nd); 1831 chroot_fs_refs(&user_nd, &new_nd);
1832 security_sb_post_pivotroot(&user_nd, &new_nd); 1832 security_sb_post_pivotroot(&user_nd, &new_nd);
1833 error = 0; 1833 error = 0;
1834 path_release(&root_parent); 1834 path_put(&root_parent.path);
1835 path_release(&parent_nd); 1835 path_put(&parent_nd.path);
1836out2: 1836out2:
1837 mutex_unlock(&old_nd.path.dentry->d_inode->i_mutex); 1837 mutex_unlock(&old_nd.path.dentry->d_inode->i_mutex);
1838 up_write(&namespace_sem); 1838 up_write(&namespace_sem);
1839 path_release(&user_nd); 1839 path_put(&user_nd.path);
1840 path_release(&old_nd); 1840 path_put(&old_nd.path);
1841out1: 1841out1:
1842 path_release(&new_nd); 1842 path_put(&new_nd.path);
1843out0: 1843out0:
1844 unlock_kernel(); 1844 unlock_kernel();
1845 return error; 1845 return error;