diff options
author | Sergey Organov <sorganov@gmail.com> | 2019-06-11 15:05:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-18 09:30:44 +0200 |
commit | 4e828c3e09201512be5ee162393f334321f7cf01 (patch) | |
tree | 9fb2200d817392b94e97300177b014004f23ef29 /tools/perf/scripts/python/stackcollapse.py | |
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions