Merge tag 'sysctl-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof...
[linux-block.git] / fs / proc / proc_sysctl.c
index f5b12adee69d2d1a3b88e3ed12ea712e3b942b40..021e83fe831f7cc3b90c75b5bc91b0f4e1ea9d9d 100644 (file)
@@ -29,7 +29,7 @@ static const struct file_operations proc_sys_dir_file_operations;
 static const struct inode_operations proc_sys_dir_operations;
 
 /* shared constants to be used in various sysctls */
-const int sysctl_vals[] = { -1, 0, 1, 2, 4, 100, 200, 1000, 3000, INT_MAX, 65535 };
+const int sysctl_vals[] = { 0, 1, 2, 3, 4, 100, 200, 1000, 3000, INT_MAX, 65535, -1 };
 EXPORT_SYMBOL(sysctl_vals);
 
 const unsigned long sysctl_long_vals[] = { 0, 1, LONG_MAX };
@@ -1342,7 +1342,7 @@ struct ctl_table_header *__register_sysctl_table(
                nr_entries++;
 
        header = kzalloc(sizeof(struct ctl_table_header) +
-                        sizeof(struct ctl_node)*nr_entries, GFP_KERNEL);
+                        sizeof(struct ctl_node)*nr_entries, GFP_KERNEL_ACCOUNT);
        if (!header)
                return NULL;