hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/fs/filesystems.c
....@@ -16,6 +16,7 @@
1616 #include <linux/module.h>
1717 #include <linux/slab.h>
1818 #include <linux/uaccess.h>
19
+#include <linux/fs_parser.h>
1920
2021 /*
2122 * Handling of filesystem drivers list.
....@@ -73,6 +74,10 @@
7374 int res = 0;
7475 struct file_system_type ** p;
7576
77
+ if (fs->parameters &&
78
+ !fs_validate_description(fs->name, fs->parameters))
79
+ return -EINVAL;
80
+
7681 BUG_ON(strchr(fs->name, '.'));
7782 if (fs->next)
7883 return -EBUSY;