Avoid division by zero in serial.

This commit is contained in:
Vladimir Serbinenko 2015-01-20 20:41:36 +01:00
parent 4816dcac19
commit e95685dab1
3 changed files with 17 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
Avoid division by zero in serial.
* grub-core/term/serial.c (grub_cmd_serial): Ensure speed is not 0.
* grub-core/term/ns8250.c (serial_get_divisor): Exit if speed is 0.
2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/video/readers/jpeg.c: Avoid sivision by zero.