mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
serial: atmel: fix error path of probe function
commit8f1bd8f2adupstream. If atmel_init_gpios fails the port has already been marked as busy (in line 2629), so this must be undone in the error path. This bug was introduced because I created the patch that finally became722ccf416a("serial: atmel: fix error handling when mctrl_gpio_init fails") on top of 3.19 which didn't have commit6fbb9bdf0f("tty/serial: at91: fix error handling in atmel_serial_probe()") yet. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Fixes:722ccf416a("serial: atmel: fix error handling when mctrl_gpio_init fails") Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5e2b2e1c44
commit
8a1d5ab825
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue