projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pid_namespace: pidns_get() should check task_active_pid_ns() != NULL
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
kernel
/
sysctl.c
diff --git
a/kernel/sysctl.c
b/kernel/sysctl.c
index
096db74
..
49e13e1
100644
(file)
--- a/
kernel/sysctl.c
+++ b/
kernel/sysctl.c
@@
-121,6
+121,8
@@
extern int blk_iopoll_enabled;
static int sixty = 60;
#endif
static int sixty = 60;
#endif
+static int __maybe_unused neg_one = -1;
+
static int zero;
static int __maybe_unused one = 1;
static int __maybe_unused two = 2;
static int zero;
static int __maybe_unused one = 1;
static int __maybe_unused two = 2;
@@
-997,9
+999,10
@@
static struct ctl_table kern_table[] = {
{
.procname = "hung_task_warnings",
.data = &sysctl_hung_task_warnings,
{
.procname = "hung_task_warnings",
.data = &sysctl_hung_task_warnings,
- .maxlen = sizeof(
unsigned long
),
+ .maxlen = sizeof(
int
),
.mode = 0644,
.mode = 0644,
- .proc_handler = proc_doulongvec_minmax,
+ .proc_handler = proc_dointvec_minmax,
+ .extra1 = &neg_one,
},
#endif
#ifdef CONFIG_COMPAT
},
#endif
#ifdef CONFIG_COMPAT