Changeset 90232bc in rtems


Ignore:
Timestamp:
Mar 12, 2019, 7:33:20 PM (2 months ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
11eb818
Parents:
3fe2155
git-author:
Joel Sherrill <joel@…> (03/12/19 19:33:20)
git-committer:
Joel Sherrill <joel@…> (03/14/19 13:21:43)
Message:

z85c30.c: Do not process 0 baud and return an error (CID 1399713)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/shared/dev/serial/z85c30.c

    r3fe2155 r90232bc  
    456456  baud_number = (uint32_t) rtems_termios_baud_to_number( baud_requested );
    457457  _Assert( baud_number != 0 );
     458
     459  /*
     460   * POSIX says baud rate of zero is a request to hang up or disconnect.
     461   * This is not supported by this driver.
     462   */
     463  _Assert( baud_number != 0 );
     464  if (baud_number == 0) {
     465    return -1;
     466  }
    458467
    459468  ulBaudDivisor = Z85C30_Baud(
Note: See TracChangeset for help on using the changeset viewer.