diff --git a/kernel/sysctl.c b/kernel/sysctl.c index c1095cdc0fe2..e8c1743fcc10 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -2149,6 +2149,7 @@ static int do_proc_douintvec_conv(bool *negp, unsigned long *lvalp, *valp = *lvalp; } else { unsigned int val = *valp; + *negp = false; *lvalp = (unsigned long)val; } return 0;