[PATCH] tty: serial: mxs-auart: fix error handling in mxs_auart_probe

2017-12-07 Thread Branislav Radocaj
If uart_add_one_port() fails in mxs_auart_probe, the clks has to be disabled.Two clks are previously enabled in mxs_get_clks(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Branislav Radocaj --- drivers/tty/serial/mxs-auart.c | 8 ++--

[PATCH] tty: serial: mxs-auart: fix error handling in mxs_auart_probe

2017-12-07 Thread Branislav Radocaj
If uart_add_one_port() fails in mxs_auart_probe, the clks has to be disabled.Two clks are previously enabled in mxs_get_clks(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Branislav Radocaj --- drivers/tty/serial/mxs-auart.c | 8 ++-- 1 file changed, 6