]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: Disallow setting watchdog_thresh to -1
authorLi Zefan <lizefan@huawei.com>
Fri, 17 May 2013 02:31:04 +0000 (10:31 +0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 28 May 2013 09:28:18 +0000 (11:28 +0200)
commit6fad5e8c3f053b44d293b862e08fff2049a800b7
tree8555a23db262d55512bf1fc365c5be8ede427f10
parent5e108f32956daceeb730214bc50256d8464d15b8
watchdog: Disallow setting watchdog_thresh to -1

In old kernels, it's allowed to set softlockup_thresh to -1 or 0
to disable softlockup detection. However watchdog_thresh only
uses 0 to disable detection, and setting it to -1 just froze my
box and nothing I can do but reboot.

Signed-off-by: Li Zefan <lizefan@huawei.com>
Acked-by: Don Zickus <dzickus@redhat.com>
Link: http://lkml.kernel.org/r/51959668.9040106@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sysctl.c