Commit b51dbec68c8732caac2495f558659556523e8322

Authored by Fabian Frederick
Committed by Linus Torvalds
1 parent 95583e4ab5

kernel/hung_task.c: convert simple_strtoul to kstrtouint

sysctl_hung_task_panic has been changed to unsigned int.  use kstrtouint
instead of obsolete simple_strtoul

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

... ... @@ -52,8 +52,10 @@
52 52  
53 53 static int __init hung_task_panic_setup(char *str)
54 54 {
55   - sysctl_hung_task_panic = simple_strtoul(str, NULL, 0);
  55 + int rc = kstrtouint(str, 0, &sysctl_hung_task_panic);
56 56  
  57 + if (rc)
  58 + return rc;
57 59 return 1;
58 60 }
59 61 __setup("hung_task_panic=", hung_task_panic_setup);