diff options
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 63ced21c12dc..7937d30a6732 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -690,7 +690,9 @@ asmlinkage long sys_umount(char __user * name, int flags) | |||
690 | 690 | ||
691 | retval = do_umount(nd.mnt, flags); | 691 | retval = do_umount(nd.mnt, flags); |
692 | dput_and_out: | 692 | dput_and_out: |
693 | path_release_on_umount(&nd); | 693 | /* we mustn't call path_put() as that would clear mnt_expiry_mark */ |
694 | dput(nd.dentry); | ||
695 | mntput_no_expire(nd.mnt); | ||
694 | out: | 696 | out: |
695 | return retval; | 697 | return retval; |
696 | } | 698 | } |