Searched hist:"84 da1516" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/hw/timer/ |
H A D | stm32f2xx_timer.c | 84da1516 Mon Oct 24 10:26:55 CDT 2016 Prasad J Pandit <pjp@fedoraproject.org> timer: stm32f2xx_timer: add check for prescaler value The STM32F2XX Timer emulator uses a 16 bit prescaler value to limit the timer clock rate. It does that by dividing the timer frequency. If the prescaler 's->tim_psc' was set to be UINT_MAX, it'd lead to divide by zero error. Limit prescaler value to 16 bits to avoid it. Reported-by: Huawei PSIRT <psirt@huawei.com> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Message-id: 1476800269-31902-1-git-send-email-ppandit@redhat.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|