Merge tag 'wireless-drivers-next-for-davem-2019-02-22' of git://git.kernel.org/pub...
[linux-2.6-block.git] / fs / super.c
index a5511c4ba69bce481454d8a9fd75f14e96b91fc5..48e25eba846533dc0ae6b213e522d8bf52254087 100644 (file)
@@ -1277,7 +1277,7 @@ mount_fs(struct file_system_type *type, int flags, const char *name, void *data)
        if (error)
                goto out_sb;
 
-       if (!(flags & MS_KERNMOUNT)) {
+       if (!(flags & (MS_KERNMOUNT|MS_SUBMOUNT))) {
                error = security_sb_kern_mount(sb);
                if (error)
                        goto out_sb;