]> rtime.felk.cvut.cz Git - linux-imx.git/blobdiff - fs/namespace.c
Fix sget() race with failing mount
[linux-imx.git] / fs / namespace.c
index 88058de59c7c2ca9edf14453f1fbeeaa4017bfa8..32dcd24bbc9a3a9fef972f95451918961574b67b 100644 (file)
@@ -1984,7 +1984,7 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
        if (flags & MS_RDONLY)
                mnt_flags |= MNT_READONLY;
 
-       flags &= ~(MS_NOSUID | MS_NOEXEC | MS_NODEV | MS_ACTIVE |
+       flags &= ~(MS_NOSUID | MS_NOEXEC | MS_NODEV | MS_ACTIVE | MS_BORN |
                   MS_NOATIME | MS_NODIRATIME | MS_RELATIME| MS_KERNMOUNT |
                   MS_STRICTATIME);