projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84208b8
)
fs: fix proc_handler for sysctl_nr_open
author
Jinliang Zheng
<alexjlzheng@gmail.com>
Sun, 24 Nov 2024 03:46:36 +0000
(11:46 +0800)
committer
Christian Brauner
<brauner@kernel.org>
Sun, 22 Dec 2024 10:29:51 +0000
(11:29 +0100)
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>
fs/file_table.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/file_table.c
b/fs/file_table.c
index 976736be47cb66197292b50458f84a7034cdaea6..502b81f614d9bbbfe3bf38addd0d2f9e60e428a9 100644
(file)
--- 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_do
u
intvec_minmax,
.extra1 = &sysctl_nr_open_min,
.extra2 = &sysctl_nr_open_max,
},