diff options
author | Joel Granados <[email protected]> | 2023-08-09 12:50:04 +0200 |
---|---|---|
committer | Luis Chamberlain <[email protected]> | 2023-08-15 15:26:18 -0700 |
commit | 3ca9aa74a89507348ae5776eb40f1265c691feca (patch) | |
tree | a3307cd6c7f9a3607ba20b321e226f4b345f2cd9 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | c899710fe7f9f24dd77135875f199359f7b8b774 (diff) |
vrf: Update to register_net_sysctl_sz
Move from register_net_sysctl to register_net_sysctl_sz and pass the
ARRAY_SIZE of the ctl_table array that was used to create the table
variable. We need to move to the new function in preparation for when we
change SIZE_MAX to ARRAY_SIZE() in the register_net_sysctl macro.
Failing to do so would erroneously allow ARRAY_SIZE() to be called on a
pointer. The actual change from SIZE_MAX to ARRAY_SIZE will take place
in subsequent commits.
Signed-off-by: Joel Granados <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions