aboutsummaryrefslogtreecommitdiffstats
path: root/fs/file_table.c
diff options
context:
space:
mode:
authorJinliang Zheng <[email protected]>2024-11-24 03:46:36 +0000
committerChristian Brauner <[email protected]>2024-12-22 10:29:51 +0000
commitd727935cad9f6f52c8d184968f9720fdc966c669 (patch)
treea886e4521a8ac99e39c92dc57b2ca4ea84745aa0 /fs/file_table.c
parentMerge patch series "symlink length caching" (diff)
downloadkernel-d727935cad9f6f52c8d184968f9720fdc966c669.tar.gz
kernel-d727935cad9f6f52c8d184968f9720fdc966c669.zip
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: 9b80a184eaad ("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]>
Diffstat (limited to 'fs/file_table.c')
-rw-r--r--fs/file_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/file_table.c b/fs/file_table.c
index 976736be47cb..502b81f614d9 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -128,7 +128,7 @@ static struct ctl_table fs_stat_sysctls[] = {
.data = &sysctl_nr_open,
.maxlen = sizeof(unsigned int),
.mode = 0644,
- .proc_handler = proc_dointvec_minmax,
+ .proc_handler = proc_douintvec_minmax,
.extra1 = &sysctl_nr_open_min,
.extra2 = &sysctl_nr_open_max,
},