Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial/efm32-uart: don't slur over failure in probe_dt

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Uwe Kleine-König and committed by
Greg Kroah-Hartman
3fc1eb5f 11f1ad3a

+3 -1
+3 -1
drivers/tty/serial/efm32-uart.c
··· 751 751 752 752 if (pdata) 753 753 efm_port->pdata = *pdata; 754 - } 754 + } else if (ret < 0) 755 + goto err_probe_dt; 755 756 756 757 line = efm_port->port.line; 757 758 ··· 765 764 766 765 if (line >= 0 && line < ARRAY_SIZE(efm32_uart_ports)) 767 766 efm32_uart_ports[line] = NULL; 767 + err_probe_dt: 768 768 err_get_rxirq: 769 769 err_too_small: 770 770 err_get_base: