sysctl: drop now unnecessary out-of-bounds check
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 22 Mar 2024 17:05:58 +0000 (18:05 +0100)
committerJoel Granados <j.granados@samsung.com>
Wed, 24 Apr 2024 07:43:54 +0000 (09:43 +0200)
commita35dd3a786f57903151b18275b1eed105084cf72
tree7a76594562b456a1337384a2281a396a4578c6c1
parent4a7b29f6509470a7e63dd67e516268fbef226194
sysctl: drop now unnecessary out-of-bounds check

Remove the now unneeded check for ctl_table_size; it is safe
to do so as sysctl_set_perm_empty_ctl_header() does not access the
ctl_table member anymore.

This also makes the element of sysctl_mount_point unnecessary, so drop
it at the same time.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Joel Granados <j.granados@samsung.com>
fs/proc/proc_sysctl.c