OSDN Git Service

serial: stm32: fix a recursive locking in stm32_config_rs485
authorBorut Seljak <borut.seljak@t-2.net>
Fri, 7 Jun 2019 10:53:06 +0000 (12:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2019 17:12:10 +0000 (19:12 +0200)
commit707aeea13a9c85520262e11899d86df3c4b48262
treedda848bd27a4dd21d4387b7f2ec2737853991864
parent87bb008c77a326855def246bf877e651d1fa74aa
serial: stm32: fix a recursive locking in stm32_config_rs485

Remove spin_lock_irqsave in stm32_config_rs485, it cause recursive locking.
Already locked in uart_set_rs485_config.

Fixes: 1bcda09d291081 ("serial: stm32: add support for RS485 hardware control mode")
Signed-off-by: Borut Seljak <borut.seljak@t-2.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c