]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/filesystems.c
Merge tag 'usb-5.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux.git] / fs / filesystems.c
index b03f57b1105b34bc5d7438c95f62e2430eb756a1..77bf5f95362da5ec767c4919e4271c11120a18ff 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/uaccess.h>
+#include <linux/fs_parser.h>
 
 /*
  * Handling of filesystem drivers list.
@@ -73,6 +74,10 @@ int register_filesystem(struct file_system_type * fs)
        int res = 0;
        struct file_system_type ** p;
 
+       if (fs->parameters &&
+           !fs_validate_description(fs->name, fs->parameters))
+               return -EINVAL;
+
        BUG_ON(strchr(fs->name, '.'));
        if (fs->next)
                return -EBUSY;