aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index dc519a1437ee..ef69fa5d2e5b 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1322,7 +1322,7 @@ SYSCALL_DEFINE2(umount, char __user *, name, int, flags)
1322 if (!(flags & UMOUNT_NOFOLLOW)) 1322 if (!(flags & UMOUNT_NOFOLLOW))
1323 lookup_flags |= LOOKUP_FOLLOW; 1323 lookup_flags |= LOOKUP_FOLLOW;
1324 1324
1325 retval = user_path_at(AT_FDCWD, name, lookup_flags, &path); 1325 retval = user_path_umountat(AT_FDCWD, name, lookup_flags, &path);
1326 if (retval) 1326 if (retval)
1327 goto out; 1327 goto out;
1328 mnt = real_mount(path.mnt); 1328 mnt = real_mount(path.mnt);
@@ -1454,7 +1454,7 @@ struct vfsmount *collect_mounts(struct path *path)
1454 CL_COPY_ALL | CL_PRIVATE); 1454 CL_COPY_ALL | CL_PRIVATE);
1455 namespace_unlock(); 1455 namespace_unlock();
1456 if (IS_ERR(tree)) 1456 if (IS_ERR(tree))
1457 return NULL; 1457 return ERR_CAST(tree);
1458 return &tree->mnt; 1458 return &tree->mnt;
1459} 1459}
1460 1460