projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95583e4
)
kernel/hung_task.c: convert simple_strtoul to kstrtouint
author
Fabian Frederick
<
[email protected]
>
Wed, 4 Jun 2014 23:11:26 +0000
(16:11 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 4 Jun 2014 23:54:15 +0000
(16:54 -0700)
sysctl_hung_task_panic has been changed to unsigned int. use kstrtouint
instead of obsolete simple_strtoul
Signed-off-by: Fabian Frederick <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/hung_task.c
patch
|
blob
|
history
diff --git
a/kernel/hung_task.c
b/kernel/hung_task.c
index 06bb1417b063fe52e287554f6c343b95cb239b55..06db12434d727c65c48cb96126a1be77992e15c0 100644
(file)
--- a/
kernel/hung_task.c
+++ b/
kernel/hung_task.c
@@
-52,8
+52,10
@@
unsigned int __read_mostly sysctl_hung_task_panic =
static int __init hung_task_panic_setup(char *str)
{
-
sysctl_hung_task_panic = simple_strtoul(str, NULL, 0
);
+
int rc = kstrtouint(str, 0, &sysctl_hung_task_panic
);
+ if (rc)
+ return rc;
return 1;
}
__setup("hung_task_panic=", hung_task_panic_setup);