sysctl: fix false positives when PROC_SYSCTL=n
authorAlexey Dobriyan <[email protected]>
Mon, 26 Oct 2009 23:50:07 +0000 (16:50 -0700)
committerLinus Torvalds <[email protected]>
Thu, 29 Oct 2009 14:39:30 +0000 (07:39 -0700)
commit8c85dd8730bfb696e691145335f884c7baef8277
tree2dca1aac534a4322695c12b2870b7c25cf60ccbe
parent115a57c5b31ab560574fe1a09deaba2ae89e77b5
sysctl: fix false positives when PROC_SYSCTL=n

Having ->procname but not ->proc_handler is valid when PROC_SYSCTL=n,
people use such combination to reduce ifdefs with non-standard handlers.

Addresses http://bugzilla.kernel.org/show_bug.cgi?id=14408

Signed-off-by: Alexey Dobriyan <[email protected]>
Reported-by: Peter Teoh <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/sysctl_check.c