diff options
author | Prasad J Pandit <pjp@fedoraproject.org> | 2016-10-12 11:28:08 +0530 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-10-24 15:27:19 +0200 |
commit | 3592fe0c919cf27a81d8e9f9b4f269553418bb01 (patch) | |
tree | 95788cb96c4b005dfc13ec10de448c5419d24ce2 /target-unicore32 | |
parent | 0a752eeea810a1c37f5de4edba355c35cfa42524 (diff) |
char: serial: check divider value against baud base
16550A UART device uses an oscillator to generate frequencies
(baud base), which decide communication speed. This speed could
be changed by dividing it by a divider. If the divider is
greater than the baud base, speed is set to zero, leading to a
divide by zero error. Add check to avoid it.
Reported-by: Huawei PSIRT <psirt@huawei.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <1476251888-20238-1-git-send-email-ppandit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target-unicore32')
0 files changed, 0 insertions, 0 deletions