]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sysctl: Replace nr_entries with ctl_table_size in new_links
authorJoel Granados <j.granados@samsung.com>
Tue, 4 Jun 2024 06:29:22 +0000 (08:29 +0200)
committerJoel Granados <j.granados@samsung.com>
Thu, 13 Jun 2024 08:50:52 +0000 (10:50 +0200)
commit55bb7eb62db4995cec7e309c2b9a1070cfd60eb6
treee4fb510caa3582ab42d6133a489860ca481096a4
parentd7a76ec87195ced6910b0ca10ca133bb316c90f5
sysctl: Replace nr_entries with ctl_table_size in new_links

The number of ctl_table entries (nr_entries) calculation was previously
based on the ctl_table_size and the sentinel element. Since the
sentinels have been removed, we remove the calculation and just use the
ctl_table_size from the ctl_table_header.

Signed-off-by: Joel Granados <j.granados@samsung.com>
fs/proc/proc_sysctl.c