Skip to content

Commit d727935

Browse files
fatherMatrixbrauner
authored andcommitted
fs: fix proc_handler for sysctl_nr_open
Use proc_douintvec_minmax() instead of proc_dointvec_minmax() to handle sysctl_nr_open, because its data type is unsigned int, not int. Fixes: 9b80a18 ("fs/file: more unsigned file descriptors") Signed-off-by: Jinliang Zheng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 84208b8 commit d727935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/file_table.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static struct ctl_table fs_stat_sysctls[] = {
128128
.data = &sysctl_nr_open,
129129
.maxlen = sizeof(unsigned int),
130130
.mode = 0644,
131-
.proc_handler = proc_dointvec_minmax,
131+
.proc_handler = proc_douintvec_minmax,
132132
.extra1 = &sysctl_nr_open_min,
133133
.extra2 = &sysctl_nr_open_max,
134134
},

0 commit comments

Comments
 (0)