From: Marcelo Roberto Jimenez Date: Wed, 2 Feb 2011 18:04:02 +0000 (-0200) Subject: RTC: Prevents a division by zero in kernel code. X-Git-Tag: v2.6.38-rc4~10^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83a06bf50bdf2074b9404951ff60e142d159d93b;p=pandora-kernel.git 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 CC: Thomas Gleixner Signed-off-by: Marcelo Roberto Jimenez Signed-off-by: John Stultz --- Reading git-diff-tree failed