commit | 4e828c3e09201512be5ee162393f334321f7cf01 | [log] [tgz] |
---|---|---|
author | Sergey Organov <sorganov@gmail.com> | Tue Jun 11 15:05:24 2019 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jun 18 09:30:44 2019 +0200 |
tree | 9fb2200d817392b94e97300177b014004f23ef29 | |
parent | da0f843e6e6ff23790e9d97a05dc555ee2e3fa11 [diff] |
serial: imx: fix locking in set_termios() imx_uart_set_termios() called imx_uart_rts_active(), or imx_uart_rts_inactive() before taking port->port.lock. As a consequence, sport->port.mctrl that these functions modify could have been changed without holding port->port.lock. Moved locking of port->port.lock above the calls to fix the issue. Signed-off-by: Sergey Organov <sorganov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>