aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMarcelo Roberto Jimenez <[email protected]>2011-02-02 18:04:02 +0000
committerJohn Stultz <[email protected]>2011-02-03 20:59:50 +0000
commit83a06bf50bdf2074b9404951ff60e142d159d93b (patch)
treeebb70cdc221d06529fd327e284f1b9191939f6aa /net/unix/af_unix.c
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rol... (diff)
downloadkernel-83a06bf50bdf2074b9404951ff60e142d159d93b.tar.gz
kernel-83a06bf50bdf2074b9404951ff60e142d159d93b.zip
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 <[email protected]> CC: Thomas Gleixner <[email protected]> Signed-off-by: Marcelo Roberto Jimenez <[email protected]> Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions