sysctl: fix proc_doulongvec_ms_jiffies_minmax()
commitfe7c60571c2c2bede42bccc84f1b1c3868a12825
authorEric Dumazet <edumazet@google.com>
Thu, 26 Jan 2017 02:20:55 +0000 (25 18:20 -0800)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 6 Mar 2017 22:31:11 +0000 (6 17:31 -0500)
tree38c9ae31fb68fb54f4de486ef15453d7c7fc0f44
parente749e709caba83d1051072a92a79c07774978ef8
sysctl: fix proc_doulongvec_ms_jiffies_minmax()

[ Upstream commit ff9f8a7cf935468a94d9927c68b00daae701667e ]

We perform the conversion between kernel jiffies and ms only when
exporting kernel value to user space.

We need to do the opposite operation when value is written by user.

Only matters when HZ != 1000

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
kernel/sysctl.c