Skip to contentSkip to conversation

softlockup: fix invalid proc_handler for softlockup_panic

PATCH Applied Hiroshi Shimamoto 2 participants 2 messages Jul 8, 2008 – Jul 18, 2008 Proc sysctl

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 softlockup: fix invalid proc_handler for softlockup_panic

From: Hiroshi Shimamoto <[email protected]>

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().

---
 kernel/sysctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sysctl.c +1 -1
index 683986d..5b8b4c1 100644
@@ -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,
Signature · 1 line
1.5.4.1
Applied
#1 lore raw
Quoted 6 lines · Hiroshi Shimamoto

From: Hiroshi Shimamoto <[email protected]>

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