dma: rc4030: limit interval timer reload value
commitc0a3172fa6bbddcc73192f2a2c48d0bf3a7ba61c
authorPrasad J Pandit <pjp@fedoraproject.org>
Wed, 12 Oct 2016 12:37:41 +0000 (12 18:07 +0530)
committerYongbok Kim <yongbok.kim@imgtec.com>
Mon, 20 Mar 2017 11:19:55 +0000 (20 11:19 +0000)
tree353de1e031db28de89471cc3bd3470e6dec83673
parent075a1fe788d36b271ec25507466c30b9a90b5d54
dma: rc4030: limit interval timer reload value

The JAZZ RC4030 chipset emulator has a periodic timer and
associated interval reload register. The reload value is used
as divider when computing timer's next tick value. If reload
value is large, it could lead to divide by zero error. Limit
the interval reload value to avoid it.

Reported-by: Huawei PSIRT <psirt@huawei.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Tested-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
hw/dma/rc4030.c