mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
sysctl: treewide: constify ctl_table_header::ctl_table_arg
To be able to constify instances of struct ctl_tables it is necessary to remove ways through which non-const versions are exposed from the sysctl core. One of these is the ctl_table_arg member of struct ctl_table_header. Constify this reference as a prerequisite for the full constification of struct ctl_table instances. No functional change. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
8442f8ba26
commit
bfa858f220
@@ -198,7 +198,7 @@ err_alloc:
|
||||
|
||||
static void mptcp_pernet_del_table(struct mptcp_pernet *pernet)
|
||||
{
|
||||
struct ctl_table *table = pernet->ctl_table_hdr->ctl_table_arg;
|
||||
const struct ctl_table *table = pernet->ctl_table_hdr->ctl_table_arg;
|
||||
|
||||
unregister_net_sysctl_table(pernet->ctl_table_hdr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user