serial: 8250: fix error handling in of_platform_serial_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 19 Jul 2017 08:32:37 +0000 (11:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Jul 2017 14:35:28 +0000 (07:35 -0700)
commitfa9ba3acb557e444fe4a736ab654f0d0a0fbccde
treed653a19091bad76e6fe633204b0e05d637be25ce
parenta73ee8438c6da166589d975fc9c7c4e98ff5e330
serial: 8250: fix error handling in of_platform_serial_probe()

clk_disable_unprepare(info->clk) is missed in of_platform_serial_probe(),
while irq_dispose_mapping(port->irq) is missed in of_platform_serial_setup().

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_of.c