[RFC PATCH 08/39] sysctl: store crypto sysctl bounds by value

From: wen . yang

Date: Wed Oct 28 2026 - 12:39:37 EST


From: Wen Yang <wen.yang@xxxxxxxxx>

Replace crypto bound pointers with numeric limits.

Suggested-by: Joel Granados <joel.granados@xxxxxxxxxx>
Signed-off-by: Wen Yang <wen.yang@xxxxxxxxx>
---
crypto/af_alg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/af_alg.c b/crypto/af_alg.c
index ab84c4488a15..8c7559c3fdca 100644
--- a/crypto/af_alg.c
+++ b/crypto/af_alg.c
@@ -38,8 +38,8 @@ static const struct ctl_table af_alg_table[] = {
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = proc_dointvec_minmax,
- .extra1 = SYSCTL_ZERO,
- .extra2 = SYSCTL_TWO,
+ .min = 0,
+ .max = 2,
},
};

--
2.25.1