public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] softlockup: fix invalid proc_handler for softlockup_panic
@ 2008-07-08  1:37 Hiroshi Shimamoto
  2008-07-18 16:29 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Hiroshi Shimamoto @ 2008-07-08  1:37 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: linux-kernel

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

The type of softlockup_panic is int, but the proc_handler is
proc_doulongvec_minmax(). This handler is for unsigned long.

This handler should be proc_dointvec_minmax().

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
---
 kernel/sysctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 683986d..5b8b4c1 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -757,7 +757,7 @@ static struct ctl_table kern_table[] = {
 		.data		= &softlockup_panic,
 		.maxlen		= sizeof(int),
 		.mode		= 0644,
-		.proc_handler	= &proc_doulongvec_minmax,
+		.proc_handler	= &proc_dointvec_minmax,
 		.strategy	= &sysctl_intvec,
 		.extra1		= &zero,
 		.extra2		= &one,
-- 
1.5.4.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] softlockup: fix invalid proc_handler for softlockup_panic
  2008-07-08  1:37 [PATCH] softlockup: fix invalid proc_handler for softlockup_panic Hiroshi Shimamoto
@ 2008-07-18 16:29 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-07-18 16:29 UTC (permalink / raw)
  To: Hiroshi Shimamoto; +Cc: linux-kernel


* Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> wrote:

> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> 
> The type of softlockup_panic is int, but the proc_handler is 
> proc_doulongvec_minmax(). This handler is for unsigned long.
> 
> This handler should be proc_dointvec_minmax().

applied to tip/core/softlockup - thanks!

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-18 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-08  1:37 [PATCH] softlockup: fix invalid proc_handler for softlockup_panic Hiroshi Shimamoto
2008-07-18 16:29 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox