summary refs log tree commit diff
path: root/drivers/net/tap.c
diff options
context:
space:
mode:
authorSergey Organov <sorganov@gmail.com>2019-06-11 15:05:24 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-18 09:30:44 +0200
commit4e828c3e09201512be5ee162393f334321f7cf01 (patch)
tree9fb2200d817392b94e97300177b014004f23ef29 /drivers/net/tap.c
parentda0f843e6e6ff23790e9d97a05dc555ee2e3fa11 (diff)
downloadlinux-4e828c3e09201512be5ee162393f334321f7cf01.tar.gz
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 'drivers/net/tap.c')
0 files changed, 0 insertions, 0 deletions