]> git.baikalelectronics.ru Git - kernel.git/commit
sysctl: add sanity check for proc_douintvec
authorLiping Zhang <zlpnobody@gmail.com>
Fri, 7 Apr 2017 15:51:05 +0000 (23:51 +0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 Apr 2017 16:46:44 +0000 (09:46 -0700)
commit60d1e21e9de89f4cf94deeb9a4a27ddc2e69bd4a
treec0ca43cac2911cf755b27f2861d90a199ef8e4a6
parentf84435f6ba90b964dcd6a975bf57869be50fed81
sysctl: add sanity check for proc_douintvec

Commit 5a007cb16697 ("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 <zlpnobody@gmail.com>
Cc: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/proc_sysctl.c