drivers/serial: Do not leave sysfs group in case of error in aspeed_vuart_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 28 Jul 2017 18:54:03 +0000 (21:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Jul 2017 14:37:25 +0000 (07:37 -0700)
commitcbafe9d5c346735d6ac5d5c905fd9c215fbbb941
treea5b4e4d19e0c72ceafdc55854a3553c57e906bd9
parent4350782570b919f254c1e083261a21c19fcaee90
drivers/serial: Do not leave sysfs group in case of error in aspeed_vuart_probe()

There are several error handling paths in aspeed_vuart_probe(),
where sysfs group is left unremoved. The patch fixes them.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_aspeed_vuart.c