]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs: fix proc_handler for sysctl_nr_open
authorJinliang Zheng <alexjlzheng@gmail.com>
Sun, 24 Nov 2024 03:46:36 +0000 (11:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:49:50 +0000 (12:49 +0100)
commiteffcbfb1e5ead74d88311e26633b0e747f208e24
tree05aa37569371ed228b7f315fca88842cb29d5576
parenta3eff27900d055cb98e8d05c50927a2aaca8c496
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>
fs/file_table.c