diff options
author | 2011-02-02 16:04:02 -0200 | |
---|---|---|
committer | 2011-02-03 12:59:50 -0800 | |
commit | 83a06bf50bdf2074b9404951ff60e142d159d93b (patch) | |
tree | ebb70cdc221d06529fd327e284f1b9191939f6aa /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband (diff) | |
download | wireguard-linux-83a06bf50bdf2074b9404951ff60e142d159d93b.tar.xz wireguard-linux-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 <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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions