diff options
| author | Joel Granados <joel.granados@kernel.org> | 2026-08-11 12:37:30 +0200 |
|---|---|---|
| committer | Joel Granados <joel.granados@kernel.org> | 2026-09-10 14:55:32 +0200 |
| commit | 6cf1dc2d616c06bccd49e13e48de0e68498e50ad (patch) | |
| tree | f336350e715213799d54dbdba248c3b393e42586 /scripts/basic/split-include.c | |
| parent | bf4839787b28b44800dbceee1d126df79dbfa6db (diff) | |
| download | linux-next-6cf1dc2d616c06bccd49e13e48de0e68498e50ad.tar.gz linux-next-6cf1dc2d616c06bccd49e13e48de0e68498e50ad.zip | |
sysctl: Reject uint arrays before calling the general proc_vec
Move the UINT vector size check to proc_douintvec_conv; the function
that routes UINT types only. Route all the UINT calls (including
proc_dou8vec_minmax) through proc_douintvec_conv.
UINT proc handlers that incorrectly define maxlen will now return
-EINVAL instead of 0 in the cases where data is missing, lenp is 0 or
ppos is 0. Note that maxlen == 0 is not considered as miss-defined.
Reviewed-by: Bradley Morgan <include@grrlz.net>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
