summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJinliang Zheng <alexjlzheng@gmail.com>2024-11-24 11:46:36 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-08 09:56:50 +0100
commit784908004f92f2ed5489a0aa6fc2101c12825c6c (patch)
treeb20cc9db68aa45599e20a2ac8bef0d6691609a85 /fs
parent966a8ea200020f4629bc1f84e6d11de9d48720ae (diff)
downloadlinux-784908004f92f2ed5489a0aa6fc2101c12825c6c.tar.gz
linux-784908004f92f2ed5489a0aa6fc2101c12825c6c.tar.bz2
linux-784908004f92f2ed5489a0aa6fc2101c12825c6c.zip
fs: fix proc_handler for sysctl_nr_open
[ Upstream commit d727935cad9f6f52c8d184968f9720fdc966c669 ] 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 <alexjlzheng@tencent.com> Link: https://lore.kernel.org/r/20241124034636.325337-1-alexjlzheng@tencent.com Signed-off-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
-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 eed5ffad9997..18735dc8269a 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -125,7 +125,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,
},