RTEMS | bsp/arm/tms570: protect against baud rate divide-by-zero (!1216)

Kinsey Moore (@opticron) gitlab at rtems.org
Thu Apr 23 23:24:47 UTC 2026




Kinsey Moore started a new discussion on bsps/arm/tms570/console/tms570-sci.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1216#note_148947

 >     */
 >  
 >    /* Baud rate */
 > -  baudrate = rtems_termios_baud_to_number(cfgetospeed(t));
 > +  speed = cfgetospeed(t);
 > +  baudrate = rtems_termios_baud_to_number(speed);

Why is speed broken out if it's otherwise unused?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1216#note_148947
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260423/41c89457/attachment.htm>


More information about the bugs mailing list