Marcelo Roberto Jimenez
83a06bf50b
RTC: Prevents a division by zero in kernel code.
...
This patch prevents a user space program from calling the RTC_IRQP_SET
ioctl with a negative value of frequency. Also, if this call is make
with a zero value of frequency, there would be a division by zero in the
kernel code.
[jstultz: Also initialize irq_freq to 1 to catch other divbyzero issues]
CC: Alessandro Zummo <a.zummo@towertech.it>
CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
Signed-off-by: John Stultz <john.stultz@linaro.org>
2011-02-03 12:59:50 -08:00
..
2011-02-03 12:59:50 -08:00
2010-03-12 15:52:28 -08:00
2011-02-03 12:59:50 -08:00
2011-01-21 17:38:20 +01:00
2010-11-11 11:34:27 +01:00
2010-09-22 17:22:39 -07:00
2010-10-29 00:29:19 +02:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-10-27 18:03:05 -07:00
2009-12-16 07:20:00 -08:00
2010-03-30 22:02:32 +09:00
2011-01-13 08:03:12 -08:00
2010-03-30 22:02:32 +09:00
2010-06-28 10:19:19 +10:00
2010-12-24 16:00:17 +01:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-10-29 19:06:53 +09:00
2010-12-24 16:00:17 +01:00
2011-01-10 22:11:23 +01:00
2010-12-24 16:00:17 +01:00
2010-03-30 22:02:32 +09:00
2010-05-21 09:37:31 -07:00
2010-05-21 09:37:31 -07:00
2010-05-21 09:37:31 -07:00
2010-12-24 16:00:17 +01:00
2010-03-30 22:02:32 +09:00
2010-08-11 08:59:07 -07:00
2010-08-11 08:59:07 -07:00
2010-05-25 08:07:08 -07:00
2010-08-11 08:59:08 -07:00
2010-10-27 18:03:06 -07:00
2010-12-10 22:24:24 -08:00
2010-10-27 18:03:05 -07:00
2010-10-22 10:52:56 -07:00
2010-03-30 22:02:32 +09:00
2010-08-11 08:59:07 -07:00
2010-08-11 08:59:07 -07:00
2010-08-11 08:59:07 -07:00
2011-01-13 08:03:12 -08:00
2010-03-30 22:02:32 +09:00
2011-01-14 12:38:16 +01:00
2010-10-29 00:30:01 +02:00
2010-08-06 09:25:50 -06:00
2010-11-17 13:53:46 +01:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-08-11 08:59:06 -07:00
2010-10-24 13:41:39 -07:00
2011-01-13 08:03:12 -08:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-08-11 08:59:06 -07:00
2009-12-16 07:19:58 -08:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-09-09 18:57:24 -07:00
2010-08-11 08:59:07 -07:00
2010-08-11 08:59:08 -07:00
2010-10-27 15:30:32 +09:00
2010-03-30 22:02:32 +09:00
2010-12-22 19:43:34 -08:00
2010-12-24 16:00:17 +01:00
2010-07-27 14:32:06 -07:00
2010-10-27 18:03:06 -07:00
2010-06-03 11:33:58 +02:00
2010-12-21 14:53:43 +00:00
2010-11-08 15:08:42 +09:00
2010-05-21 09:37:31 -07:00
2010-03-30 22:02:32 +09:00
2010-03-12 15:52:28 -08:00
2010-03-06 11:26:47 -08:00
2010-05-21 09:37:31 -07:00
2010-03-30 22:02:32 +09:00
2009-12-16 07:20:00 -08:00
2010-05-25 08:07:08 -07:00
2010-03-07 22:16:56 +01:00
2009-12-16 07:20:00 -08:00