serial: 8250_tegra: Fix an error handling path in tegra_uart_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 14 May 2023 11:25:42 +0000 (13:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 08:34:26 +0000 (10:34 +0200)
commit7493392a375cdf920ea45144f471a2943fccbcd0
tree287afcf352f8465bfb01b08bee2591b10d00818e
parent3270095f6eb52b50b8c6844594bdd650258aac2b
serial: 8250_tegra: Fix an error handling path in tegra_uart_probe()

commit 134f49dec0b6aca3259cd8259de4c572048bd207 upstream.

If an error occurs after reset_control_deassert(), it must be re-asserted,
as already done in the .remove() function.

Fixes: c6825c6395b7 ("serial: 8250_tegra: Create Tegra specific 8250 driver")
Cc: stable <stable@kernel.org>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/f8130f35339cc80edc6b9aac4bb2a60b60a226bf.1684063511.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_tegra.c