Message ID | 20250306123514.386434-3-nicolas.bouchinet@clip-os.org (mailing list archive) |
---|---|
State | Handled Elsewhere |
Headers | show |
Series | Fixes multiple sysctl bound checks | expand |
diff --git a/fs/coda/coda_int.h b/fs/coda/coda_int.h index f82b59c9dd287..c7fc4c5a77d58 100644 --- a/fs/coda/coda_int.h +++ b/fs/coda/coda_int.h @@ -6,7 +6,7 @@ struct dentry; struct file; extern struct file_system_type coda_fs_type; -extern unsigned long coda_timeout; +extern unsigned int coda_timeout; extern int coda_hard; extern int coda_fake_statfs; diff --git a/fs/coda/sysctl.c b/fs/coda/sysctl.c index 0df46f09b6cc5..d6f8206c51575 100644 --- a/fs/coda/sysctl.c +++ b/fs/coda/sysctl.c @@ -20,7 +20,9 @@ static const struct ctl_table coda_table[] = { .data = &coda_timeout, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_dointvec + .proc_handler = proc_dointvec_minmax, + .extra1 = SYSCTL_ZERO, + .extra2 = SYSCTL_INT_MAX, }, { .procname = "hard",