sysctl: add sanity check for proc_douintvec

Commit e7d316a02f68 ("sysctl: handle error writing UINT_MAX to u32
fields") introduced the proc_douintvec helper function, but it forgot to
add the related sanity check when doing register_sysctl_table.  So add
it now.

Signed-off-by: Liping Zhang <>
Cc: Subash Abhinov Kasiviswanathan <>
Cc: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
1 file changed