[PATCH 04/26] serial: core: Fix x_char race

2014-09-02 Thread Peter Hurley
The UART driver is expected to clear port->x_char after transmission while holding the port->lock. However, the serial core fails to take the port->lock before assigning port->xchar. This allows for the following race CPU 0 | CPU 1 |

[PATCH 04/26] serial: core: Fix x_char race

2014-09-02 Thread Peter Hurley
The UART driver is expected to clear port-x_char after transmission while holding the port-lock. However, the serial core fails to take the port-lock before assigning port-xchar. This allows for the following race CPU 0 | CPU 1 |