Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure UART file descriptors are valid before using them in uart_clos…
…e (). The uart_open() function may call uart_close() with a 'serial_port' structure with an invalid member 'fd' if the port was not opened successfully. The call to uart_close() was kept for consistency with the rest of the function because uart_close() is also in charge of freeing 'serial_port'.
- Loading branch information