EDAC: Poll timeout cannot be zero, p2
authorBorislav Petkov <bp@suse.de>
Mon, 3 Feb 2014 20:05:13 +0000 (15:05 -0500)
committerBorislav Petkov <bp@suse.de>
Fri, 14 Feb 2014 09:40:29 +0000 (10:40 +0100)
commit9da21b1509d8aa7ab4846722817d16c72d656c91
treee21027dab66b50e1f21e3dd9b62846f7473bda8a
parent4675348e78fab420e70f9144b320d9c063c7cee8
EDAC: Poll timeout cannot be zero, p2

Sanitize code even more to accept unsigned longs only and to not allow
polling intervals below 1 second as this is unnecessary and doesn't make
much sense anyway for polling errors.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1391457913-881-1-git-send-email-prarit@redhat.com
Cc: Doug Thompson <dougthompson@xmission.com>
Cc: <stable@vger.kernel.org>
drivers/edac/edac_mc.c
drivers/edac/edac_mc_sysfs.c
drivers/edac/edac_module.h